[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

Charles-François Natali report at bugs.python.org
Tue May 24 19:44:32 CEST 2011


Charles-François Natali <neologix at free.fr> added the comment:

> You change caused test_socketserver to hang. I attempted a fix, but I'm not sure if it's completely correct.

I'm a morron.
I don't know how I could miss this: closing the server socket is perfectly fine in TCP, since a new one is returned by accept(). But in UDP, it's definitely wrong, since it's used by the handler.
I don't know however how I missed this, since I remember having run test_socketserver...

The best fix is simply to revert the patch.
I'm really sorry about this...

----------

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


More information about the Python-bugs-list mailing list