[python-ldap] SyncreplConsumer running in parallel with other application

Michael Ströder michael at stroeder.com
Fri Jan 8 10:56:30 EST 2016


David Gabriel wrote:
> After some investigation in the source code I think the function 'result4'
> located in the file ldapobject.py is the responsible of this blocking
> behaviour.

1. Please note that I personally do not feel responsible for the code *fork* on
github.

2. You did not tell us any other relevant details like
- OS
- Python version
- python-ldap version (from where?)
- whether python-ldap is linked against libldap_r etc.

While method LDAPObject.result4() is called in a blocking manner it's IMHO
likely not the cause for your code not being executed in parallel.

Frankly I don't see any reason why it's not possible to run the blocking
syncrepl client code in one thread and having other code running in separate
threads.

It might help if you would post a *small* code example with threads illustrating
what you're trying to achieve and which shows your blocking issue.

Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20160108/951a6651/attachment-0001.bin>


More information about the python-ldap mailing list