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

Apply new socket options to existing open sockets #140

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

uzlonewolf
Copy link
Collaborator

I'm using the socket timeout during receive() as a crude timer and need to change it on the fly, but set_socketTimeout() was not applying to existing open persistent sockets. This update makes set_socketTimeout() and set_socketNODELAY() update immediately, and causes set_socketPersistent() to close the socket if persistent is changed to False and a socket is open.

@jasonacox jasonacox merged commit 708c21f into jasonacox:master Jun 15, 2022
@jasonacox
Copy link
Owner

Great fix! Thanks for this, @uzlonewolf !

@jasonacox
Copy link
Owner

Updated code released in v1.6.0

@uzlonewolf uzlonewolf deleted the sock-change-open branch June 15, 2022 05:12
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