[issue11721] socket.accept() with a timout socket creates bogus socket

Antoine Pitrou report at bugs.python.org
Wed Mar 30 15:08:52 CEST 2011


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

> The corresponding defect has a long (and bothersome) discussion.  I am, 
> however, surprised that this was not considered a "bug" and backported.

I think Martin's argument was that it could break compatibility.

> I can agree with the fix (my number 1 suggestion) but I would have
> liked to see it done in socketmodule.c where the timeout semantics are 
> all defined, rather than as a cludgy special case in socket.py

There's definitely a reason for doing it in socket.py rather than socketmodule.c, although I don't remember which one.

----------

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


More information about the Python-bugs-list mailing list