René's URL Explorer Experiment


Title: ldap.TIMEOUT unhandled in ReconnectLDAPObject _apply_method_s · Issue #446 · python-ldap/python-ldap · GitHub

Open Graph Title: ldap.TIMEOUT unhandled in ReconnectLDAPObject _apply_method_s · Issue #446 · python-ldap/python-ldap

X Title: ldap.TIMEOUT unhandled in ReconnectLDAPObject _apply_method_s · Issue #446 · python-ldap/python-ldap

Description: Issue description: When using ReconnectLDAPObject, if a server disconnects after a connection is created, it fails with an ldap.TIMEOUT which is unhandled. ldap.TIMEOUT is properly caught only during the initial connection, whereas in _a...

Open Graph Description: Issue description: When using ReconnectLDAPObject, if a server disconnects after a connection is created, it fails with an ldap.TIMEOUT which is unhandled. ldap.TIMEOUT is properly caught only duri...

X Description: Issue description: When using ReconnectLDAPObject, if a server disconnects after a connection is created, it fails with an ldap.TIMEOUT which is unhandled. ldap.TIMEOUT is properly caught only duri...

Opengraph URL: https://github.com/python-ldap/python-ldap/issues/446

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ldap.TIMEOUT unhandled in ReconnectLDAPObject _apply_method_s","articleBody":"Issue description:\r\n\r\nWhen using ReconnectLDAPObject, if a server disconnects after a connection is created, it fails with an ldap.TIMEOUT which is unhandled.\r\n\r\nldap.TIMEOUT is properly caught only during the initial connection, whereas in _apply_method_s which is applied to synchronous methods, ReconnectLDAPObject only catches the ldap.SERVER_DOWN exception.\r\n\r\nSteps to reproduce: \r\n\r\nTo reproduce the issue, I created the following script to test. I created an interface with the additional 192.168.1.100 address, which I remove after initializing the ReconnectLDAPObject and binding.\r\n\r\n```\r\nimport ldap\r\n#from ldappool import StateConnector as Connector\r\n#from ldap.ldapobject import SimpleLDAPObject as Connector\r\nfrom ldap.ldapobject import ReconnectLDAPObject as Connector\r\nfrom time import sleep\r\n\r\nldap.set_option(ldap.OPT_NETWORK_TIMEOUT, 10)\r\n\r\nc = Connector('ldap://192.168.1.100,ldap://localhost')\r\nc.network_timeout = 10\r\nc.timeout = 10\r\nc.simple_bind_s()\r\nprint('sleeping...')\r\nsleep(30) # now remove the 192.168.1.100 IP address from the interface\r\nprint('awoke')\r\n\r\nresult = c.search_s(\r\n    'ou=Users,dc=openstack,dc=org',\r\n    1,\r\n    '(\u0026(objectClass=inetOrgPerson)(uid=*))',\r\n    ['mail', 'userPassword', 'description', 'enabled', 'uid', 'cn'],\r\n    0\r\n)\r\nprint(result)\r\n```\r\n\r\n```\r\nTraceback (most recent call last):                                                               \r\n  File \"/home/ubuntu/devstack/test.py\", line 18, in \u003cmodule\u003e                                                                                                                                  \r\n    result = c.search_s(                                \r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 631, in search_s                                                                                                     \r\n    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)\r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 1030, in search_ext_s                                                                                                \r\n    return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)            \r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 968, in _apply_method_s                                                                                              \r\n    return func(self,*args,**kwargs)                                                             \r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 625, in search_ext_s\r\n    return self.result(msgid,all=1,timeout=timeout)[1]                                           \r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 535, in result                                                                                                       \r\n    resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)                       \r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 539, in result2         \r\n    resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)     \r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 543, in result3\r\n    resp_type, resp_data, resp_msgid, decoded_resp_ctrls, retoid, retval = self.result4(\r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 553, in result4\r\n    ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)\r\n  File \"/usr/local/lib/python3.9/dist-packages/ldap/ldapobject.py\", line 128, in _ldap_call\r\n    result = func(*args,**kwargs)                                                                \r\nldap.TIMEOUT                \r\n```\r\n\r\nOperating system: \r\n\r\nGNU Linux Ubuntu 21.04\r\n\r\nPython version: \r\n\r\nPython 3.9.5\r\n\r\npython-ldap version: \r\n\r\n3.4.0\r\n","author":{"url":"https://github.com/xek","@type":"Person","name":"xek"},"datePublished":"2021-12-08T15:56:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/446/python-ldap/issues/446"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:fcadad47-2c2f-6177-ab40-425b72f16105
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8CC6:14F335:6C8F876:8D1C316:697574C3
html-safe-noncee791aefc5aff82f5a67013ee01bd3ec6cea75138a27207a9a8f5521873912842
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0M2OjE0RjMzNTo2QzhGODc2OjhEMUMzMTY6Njk3NTc0QzMiLCJ2aXNpdG9yX2lkIjoiNTYzNTExNDUyMTg4OTcwOTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac660bd6485d9802c1395247532259c07beed6c56a8d624d8d5fd5e6ab9c6c7248
hovercard-subject-tagissue:1074562395
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-ldap/python-ldap/446/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fe9dd2c840cbac6d320068977cc020ea2b117527045f7e5b1b02ceda60a46b8b/python-ldap/python-ldap/issues/446
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fe9dd2c840cbac6d320068977cc020ea2b117527045f7e5b1b02ceda60a46b8b/python-ldap/python-ldap/issues/446
og:image:altIssue description: When using ReconnectLDAPObject, if a server disconnects after a connection is created, it fails with an ldap.TIMEOUT which is unhandled. ldap.TIMEOUT is properly caught only duri...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamexek
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
go-importgithub.com/python-ldap/python-ldap git https://github.com/python-ldap/python-ldap.git
octolytics-dimension-user_id33895877
octolytics-dimension-user_loginpython-ldap
octolytics-dimension-repository_id111794776
octolytics-dimension-repository_nwopython-ldap/python-ldap
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id111794776
octolytics-dimension-repository_network_root_nwopython-ldap/python-ldap
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-ldap/python-ldap/issues/446#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fissues%2F446
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-ldap%2Fpython-ldap%2Fissues%2F446
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-ldap%2Fpython-ldap
Reloadhttps://github.com/python-ldap/python-ldap/issues/446
Reloadhttps://github.com/python-ldap/python-ldap/issues/446
Reloadhttps://github.com/python-ldap/python-ldap/issues/446
python-ldap https://github.com/python-ldap
python-ldaphttps://github.com/python-ldap/python-ldap
Notifications https://github.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Fork 137 https://github.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Star 436 https://github.com/login?return_to=%2Fpython-ldap%2Fpython-ldap
Code https://github.com/python-ldap/python-ldap
Issues 83 https://github.com/python-ldap/python-ldap/issues
Pull requests 19 https://github.com/python-ldap/python-ldap/pulls
Actions https://github.com/python-ldap/python-ldap/actions
Projects 0 https://github.com/python-ldap/python-ldap/projects
Security 3 https://github.com/python-ldap/python-ldap/security
Insights https://github.com/python-ldap/python-ldap/pulse
Code https://github.com/python-ldap/python-ldap
Issues https://github.com/python-ldap/python-ldap/issues
Pull requests https://github.com/python-ldap/python-ldap/pulls
Actions https://github.com/python-ldap/python-ldap/actions
Projects https://github.com/python-ldap/python-ldap/projects
Security https://github.com/python-ldap/python-ldap/security
Insights https://github.com/python-ldap/python-ldap/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/446
New issuehttps://github.com/login?return_to=https://github.com/python-ldap/python-ldap/issues/446
ldap.TIMEOUT unhandled in ReconnectLDAPObject _apply_method_shttps://github.com/python-ldap/python-ldap/issues/446#top
https://github.com/xek
https://github.com/xek
xekhttps://github.com/xek
on Dec 8, 2021https://github.com/python-ldap/python-ldap/issues/446#issue-1074562395
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.