Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add :shutdown() method for ending the TLS session before :close() #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mwild1
Copy link
Contributor

@mwild1 mwild1 commented Feb 6, 2025

This allows applications to separate ending the TLS session from closing the underlying socket. In particular, it enables us to avoid needing to set the socket to blocking mode during close().

We need this to avoid a problem that can cause Prosody servers to block during connection close on some systems. More details in this prosody-dev mailing list post.

This allows applications to separate ending the TLS session from closing the
underlying socket. In particular, it enables us to avoid needing to set the
socket to blocking mode during close().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant