[issue1767511] SocketServer.DatagramRequestHandler with empty response

Martin Panter report at bugs.python.org
Tue Feb 9 17:20:34 EST 2016


Martin Panter added the comment:

Sorry that nobody has responded to your patch in almost a decade. :( Unfortunately in the meantime the test file seems to have been completely rewritten.

For the original problem, I think it would be better if we just documented that this is the way it works. Sending an empty response message seems like a plausible way to acknowledge handling of a request. This parallels the stream handler only shutting down the connection when the request handler has finished. Changing this could break compatibility.

Ben: if you’re still interested, can you explain what the problem is on Windows? My experiments with Wine on Linux suggest that it can send empty UDP responses fine. Is Windows able to send and receive zero-length UDP messages with plain sockets? Perhaps this should be a separate bug.

----------
nosy: +martin.panter
stage:  -> patch review
title: SocketServer.DatagramRequestHandler -> SocketServer.DatagramRequestHandler with empty response

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


More information about the Python-bugs-list mailing list