{"action":"created","issue":{"url":"https://api.github.com/repos/cannatag/ldap3/issues/208","repository_url":"https://api.github.com/repos/cannatag/ldap3","labels_url":"https://api.github.com/repos/cannatag/ldap3/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/cannatag/ldap3/issues/208/comments","events_url":"https://api.github.com/repos/cannatag/ldap3/issues/208/events","html_url":"https://github.com/cannatag/ldap3/issues/208","id":170257770,"number":208,"title":"Timeout does not appear to be honored","user":{"login":"kjwilcox","id":6686641,"avatar_url":"https://avatars.githubusercontent.com/u/6686641?v=3","gravatar_id":"","url":"https://api.github.com/users/kjwilcox","html_url":"https://github.com/kjwilcox","followers_url":"https://api.github.com/users/kjwilcox/followers","following_url":"https://api.github.com/users/kjwilcox/following{/other_user}","gists_url":"https://api.github.com/users/kjwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/kjwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjwilcox/subscriptions","organizations_url":"https://api.github.com/users/kjwilcox/orgs","repos_url":"https://api.github.com/users/kjwilcox/repos","events_url":"https://api.github.com/users/kjwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/kjwilcox/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-08-09T20:05:22Z","updated_at":"2016-08-18T16:50:37Z","closed_at":"2016-08-18T16:50:37Z","body":"I recently observed some code using ldap3 lasting well beyond the configured timeout.\r\n\r\n```\r\nserver = ldap3.Server(LDAP_URL, connect_timeout=10)\r\nconnection = ldap3.Connection(server, username, password, auto_bind=True)\r\nsuccess = connection.search(\r\n  search_base,\r\n  search_filter,\r\n  attributes=ldap3.ALL_ATTRIBUTES,\r\n  search_scope=search_scope,\r\n  time_limit=10\r\n) \r\n```\r\n\r\nLooking at the ldap3 source seemed to indicate that the receive_timeout on the connection object would be set to whatever the server had, so changing that didn't affect anything in my testing.\r\n\r\nBut when I introduced severe network latency, I saw this code running for 40+ seconds before succeeding.\r\n\r\nIt would be nice to be able to reason about the upper limit on how long this code could be running for. So this is either a bug report (if timeouts are maybe not working correctly), or a feature request for a time limit when connecting. Please let me know, and I can try to produce a more complete repro if this is a bug."},"comment":{"url":"https://api.github.com/repos/cannatag/ldap3/issues/comments/240785344","html_url":"https://github.com/cannatag/ldap3/issues/208#issuecomment-240785344","issue_url":"https://api.github.com/repos/cannatag/ldap3/issues/208","id":240785344,"user":{"login":"kjwilcox","id":6686641,"avatar_url":"https://avatars.githubusercontent.com/u/6686641?v=3","gravatar_id":"","url":"https://api.github.com/users/kjwilcox","html_url":"https://github.com/kjwilcox","followers_url":"https://api.github.com/users/kjwilcox/followers","following_url":"https://api.github.com/users/kjwilcox/following{/other_user}","gists_url":"https://api.github.com/users/kjwilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/kjwilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjwilcox/subscriptions","organizations_url":"https://api.github.com/users/kjwilcox/orgs","repos_url":"https://api.github.com/users/kjwilcox/repos","events_url":"https://api.github.com/users/kjwilcox/events{/privacy}","received_events_url":"https://api.github.com/users/kjwilcox/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T16:50:37Z","updated_at":"2016-08-18T16:50:37Z","body":"I tried it out and it works exactly as expected. Thank you for your responsiveness on this issue and for fixing it!\r\n\r\nAny idea when 1.5.0 will get a PyPI release? I am eager to make use of this."}}
{"actor":{"display_login":"kjwilcox"}}