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 <rep...@bugs.python.org> <http://bugs.python.org/issue23863> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com