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 <rep...@bugs.python.org>
<http://bugs.python.org/issue1767511>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to