Message132591
Please see issue 11721 where I was commenting on the same.
I don't think the documentation makes it clear that socket.gettimeout() can be incorrect (i.e. return None when the socket is non-blocking).
I also don't think there is a portable way to detect the NBIO attribute of a socket, so we still have a case of socket.gettimeout() not accurately reflecting the blocking state of the socket. If people don't think it is a bug, then this fact should be documented.
I personally think that this logic should go into socketmodule.c where the rest of the timeout logic sits, rather than be exctracted like this out into the python world.
Finally, IMHO this is a bug that should be backported as far back as possible.
Cheers! |
|
Date |
User |
Action |
Args |
2011-03-30 13:58:55 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, loewis, ronaldoussoren, exarkun, roysmith, pitrou, giampaolo.rodola, ned.deily, nicdumz, bbangert, Justin.Cappos, rosslagerwall |
2011-03-30 13:58:55 | kristjan.jonsson | set | messageid: <1301493535.49.0.446032258442.issue7995@psf.upfronthosting.co.za> |
2011-03-30 13:58:54 | kristjan.jonsson | link | issue7995 messages |
2011-03-30 13:58:54 | kristjan.jonsson | create | |
|