Cross-platform socket.getsockopt and struct.unpack (or socket timeout)?
hjtoi-better-remove-when_replying at comcast.net
Tue Sep 16 10:09:06 CEST 2008
Fredrik Lundh wrote:
> Heikki Toivonen wrote:
>> Is there a cross-platform way of doing what the M2Crypto code is
>> attempting to do?
> calling the socket object's settimeout() method?
I would suspect that is not strictly equivalent to what the old code is
doing, though, because it seems you can set read and write timeouts
separately using the socket options directly.
More information about the Python-list