Message237609
The PEP 475 has been accepted and is partialy implemented. The socket module is not fully patched to handle EINTR. For example, socket.socket.connect() doesn't handle EINTR yet.
Attached patch fixes socket.connect() to handle EINTR. It should fix issue #11266 and #20611 in Python 3.5 (Python 2.7 and 3.4 will need to be patched to handle explicitly InterruptedError/OSError(EINTR) in Python).
By the way, some socket functions handle EINTR but don't recompute the timeout yet. _PyTime_monotonic() should be used. |
|
Date |
User |
Action |
Args |
2015-03-09 09:08:33 | vstinner | set | recipients:
+ vstinner, neologix, serhiy.storchaka |
2015-03-09 09:08:33 | vstinner | set | messageid: <1425892113.2.0.561654455596.issue23618@psf.upfronthosting.co.za> |
2015-03-09 09:08:33 | vstinner | link | issue23618 messages |
2015-03-09 09:08:32 | vstinner | create | |
|