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

socket timeout when accepting client connection #53

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

honnix
Copy link
Contributor

@honnix honnix commented Oct 15, 2018

socket.setdefaulttimeout() would impact socket.accept() and in that case manhole thread shouldn't die.

`socket.setdefaulttimeout()` would impact `socket.accept()` and in that case manhole thread shouldn't die.
@honnix
Copy link
Contributor Author

honnix commented Oct 15, 2018

Minimum code to reproduce:

test.py

import socket
socket.setdefaulttimeout(5)

import time
time.sleep(1000)

python test.py

@honnix
Copy link
Contributor Author

honnix commented Oct 16, 2018

@ionelmc PTAL It seems effort needed to fix all test cases.

@honnix
Copy link
Contributor Author

honnix commented Oct 18, 2018

ping

@ionelmc ionelmc merged commit 5d0739a into ionelmc:master Jan 14, 2019
@honnix honnix deleted the patch-1 branch January 14, 2019 13:23
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