[issue23863] Fix EINTR Socket Module issues in 2.7

STINNER Victor report at bugs.python.org
Thu Apr 9 10:32:21 CEST 2015


STINNER Victor added the comment:

Ok, since you look to want to fix Python 2.7, I can help you to handle EINTR in socket.connect() since I fixed Python 3.5.

If Python 2.7 is fixed, Python 3.4 should also be fixed.

connect_eintr-py27.patch: Patch for Python 2.7 to handle EINTR in socket.connect() for blocking socket or socket with a timeout. The patch calls select() to wait until the connection completes or fails.

Use attached test_connect_eintr4.py to test it.

I only tested my patch on Linux yet.

----------
Added file: http://bugs.python.org/file38873/connect_eintr-py27.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23863>
_______________________________________


More information about the Python-bugs-list mailing list