[issue23863] Fix EINTR Socket Module issues in 2.7

Jeff McNeil report at bugs.python.org
Wed Apr 8 17:26:23 CEST 2015


Jeff McNeil added the comment:

So, yeah, that's right. In the attached patch, I'm closing the file descriptor if the timeout/error happens on a non-blocking call.  It fails with an EBADF on reconnect at that point, but it doesn't potentially leave an FD in the proc's file table.

Should be no more EINTR's coming out of the select call.

----------

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


More information about the Python-bugs-list mailing list