[python-ldap] Proper timeout handling

ondrej.kolin at gmail.com ondrej.kolin at gmail.com
Tue Nov 12 02:53:00 EST 2019


Hi guys, 

How should I properly use timeout in basic operations like
.get_naming_context? 

Imagine this code:
l = ldap.initialize('ldap://test.xyz.com')
l.get_naming_context() 

But this times out on some internal TCP connection timeout, which is
pretty long, can I use a shorter one? How?

Regards,
Ondrej



More information about the python-ldap mailing list