-
Notifications
You must be signed in to change notification settings - Fork 3
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
py: fix read with timeout on windows #10
Comments
maybe use timeout-decorator |
does this affect us too?
https://github.com/pnpnpn/timeout-decorator#multithreading
|
maybe use select, see also pyopenssl do_handshake with timeout |
the current
signal.SIGALRM
solution is unix-onlyper Timeout on subprocess readline in Python
similar #6
the javascript version uses
child_process.spawnSync
to enforce the read timeoutcontinue #4 (comment)
... but instead of starting a new python process
first this should try to run
dd
to save memoryi tried to solve this with
asyncio.timeout
but no, this hangs atos.read
fail: asyncio.timeout
The text was updated successfully, but these errors were encountered: