mitogen-hq / mitogen

Distributed self-replicating programs in Python
https://mitogen.networkgenomics.com/
BSD 3-Clause "New" or "Revised" License
2.34k stars 199 forks source link

mitogen.unix.Listener.on_accept_client() does not verify all data has been sent by socket.send() #1109

Open moreati opened 2 months ago

moreati commented 2 months ago

From the docs

Returns the number of bytes sent. Applications are responsible for checking that all data has been sent; if only some of the data was transmitted, the application needs to attempt delivery of the remaining data

mitogen.unix.Listener.on_accept_client() discards the return value