Message82387
Isn't it a job of crossplatform programming language to abstract from
low-level platform details?
The scope of this bug is not about handling all possible Winsock errors.
It is about proper handling the sole timeout error from the list
http://www.winsock-error.com/ to make socket.connect() interface
consistent for both windows and linux.
In addition I believe that new socket.create_connection() function is
vulnerable to the same issue and its only a matter of time when somebody
reports that its additional "timeout" argument should be less than
mystic system network timeout value. That's why some sort of generalized
socket.connection_timeout exception is still needed.
BTW, I have tested the behaviour on linux - the system timeout on socket
does occur, but with different error code.
socket.error: (110, 'Connection timed out')
Note that the error message is different too. That means that to
properly wait for service to appear (or retry to reconnect later if
server is not available) you need to handle three error cases. |
|
Date |
User |
Action |
Args |
2009-02-17 23:07:29 | techtonik | set | recipients:
+ techtonik, loewis, gregory.p.smith |
2009-02-17 23:07:29 | techtonik | set | messageid: <1234912049.42.0.492929619698.issue5293@psf.upfronthosting.co.za> |
2009-02-17 23:07:27 | techtonik | link | issue5293 messages |
2009-02-17 23:07:27 | techtonik | create | |
|