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

Disable keep-alive on server example #68

Merged

Conversation

iamjpotts
Copy link
Contributor

Based on a suggestion by @fussybeaver at #66 (comment), disables keep alive in the server example.

This results in consistent behavior of the server example between Linux and OSX - serve_connection returns Ok immediately after a client connects, rather than on OSX blocking while the client is connected, and then returning an Err later when the client gracefully disconnects.

@softprops softprops merged commit adf3588 into softprops:main Apr 7, 2024
7 checks passed
@iamjpotts iamjpotts deleted the 20240407-server-example-keepalive branch April 7, 2024 23:19
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.

2 participants