Skip to content

LDAPClient.unbind returns a Deferred that fires on actual disconnect (fixes #225) - #258

Merged
psi29a merged 1 commit into
masterfrom
fixes/batch5
Aug 25, 2026
Merged

LDAPClient.unbind returns a Deferred that fires on actual disconnect (fixes #225)#258
psi29a merged 1 commit into
masterfrom
fixes/batch5

Conversation

@psi29a

@psi29a psi29a commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

LDAPClient.unbind returns a Deferred that fires on actual disconnect (fixes #225)

Also add LDAPClient.notifyOnDisconnect() so callers can register their own disconnect Deferreds without initiating an unbind. Matters for TLS teardown, which can take noticeably longer than TCP FIN and previously left callers hoping the loseConnection had actually completed.

Backwards compatible: existing callers that ignore unbind()'s return value keep working; the ones that need to wait now can.

…ixes #225)

Also add LDAPClient.notifyOnDisconnect() so callers can register their
own disconnect Deferreds without initiating an unbind. Matters for TLS
teardown, which can take noticeably longer than TCP FIN and previously
left callers hoping the loseConnection had actually completed.

Backwards compatible: existing callers that ignore unbind()'s return
value keep working; the ones that need to wait now can.
@psi29a
psi29a merged commit 6ecb513 into master Aug 25, 2026
6 checks passed
@psi29a
psi29a deleted the fixes/batch5 branch August 25, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add callback/hook when the client connection is closed

1 participant