Message240195
According to the issue #23618, when connect() fails with EINTR, retrying connect() may only work on some platforms. To have a reliable behaviour on all platforms, we should wait until the socket becomes writable because the connection runs asynchronously in background. When the socket becomes writable, we have to gets its error code (getsockopt(SO_ERROR)) to check if the connection succeeded or failed.
Attached patch fixes SelectorEventLoop.sock_connect(). |
|
Date |
User |
Action |
Args |
2015-04-07 08:23:09 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov |
2015-04-07 08:23:09 | vstinner | set | messageid: <1428394989.42.0.151918238179.issue23879@psf.upfronthosting.co.za> |
2015-04-07 08:23:08 | vstinner | link | issue23879 messages |
2015-04-07 08:23:08 | vstinner | create | |
|