This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gregory.p.smith, mcjeff, vstinner
Date 2015-04-09.08:32:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428568341.01.0.429085182418.issue23863@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-09 08:32:21vstinnersetrecipients: + vstinner, gregory.p.smith, mcjeff
2015-04-09 08:32:21vstinnersetmessageid: <1428568341.01.0.429085182418.issue23863@psf.upfronthosting.co.za>
2015-04-09 08:32:20vstinnerlinkissue23863 messages
2015-04-09 08:32:20vstinnercreate