-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Avoid 'Connection refused' when using gthread with keep-alive #1699
Conversation
Thanks for the patch! Looking :) |
any update? |
I've added two commits to make added attribute corresponding to it's name, these commits don't affect solution for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does any of this get simpler to reason about or handle if the murder_keepalived
method held the lock for the whole body of the loop? With the lock being taken in both branches of the if
statement on line 168, I wonder whether it's worth the overhead of locking twice and whether holding the lock throughout might remove the race condition without introducing this new variable.
@tilgovi That was my first try and after that received connection refused again but most probably I've done something wrong with testing.. |
…th keep-alive Fixes benoitc#1698
Now it's clean why moving whole |
any update? |
Sorry for the delay. looks good, merging it now :) Thanks ! |
Thanks
…On Mar 1, 2018 1:56 PM, "Benoit Chesneau" ***@***.***> wrote:
Sorry for the delay. looks good, merging it now :) Thanks !
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1699 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHXbDCYRKTduea0_Ti0DdIhKMqWADwwlks5tZ-_0gaJpZM4R7JdS>
.
|
@benoitc What is the estimated time when this change is pushed to PyPI? |
…th keep-alive (benoitc#1699) Fixes benoitc#1698
Fixes #1698