Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reroute errback to deferred returned by search()
The LDAPEntryWithClient.search() method used to send the LDAP request with a call like self.client.send_multiResponse(... ) send_multiResponse() returns a deferred that was just discarded. If the operation causes an error then the errback fired on the discarded deferred will remain unhandled. The deferred returned by search() will then not have any errback fired and the caller of search() will be waiting forever. This change adds an errback to the deferred returned by send_multiResponse() and has the error rerouted to the errback chain of the deferred returned by search().
- Loading branch information