[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

Antoine Pitrou report at bugs.python.org
Mon Apr 26 11:48:48 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

> That's what I thought at first too. But the user's sockets were set to 
> blocking.

If you set a timeout on a socket, it is really non-blocking internally (from the OS' point of view). So perhaps this is what you are witnessing.

By the way, rather than sleeping a fixed amount of time before retrying, you could probably use select() on the socket.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8493>
_______________________________________


More information about the Python-bugs-list mailing list