30 Jul
2013
30 Jul
'13
1:31 p.m.
On 30/07/13 13:55, Laurens Van Houtven wrote:
On Tue, Jul 30, 2013 at 2:44 PM, Phil Mayers
mailto:p.mayers@imperial.ac.uk> wrote: For TCP?
Yes. See also the difference between socket.send and socket.sendall :)
socket.send returns a number of bytes that it actually sent.
Sure - FD writes don't, in general, have to take your entire buffer (or any of it). But once accepted, the data is no more or less likely to be dropped than data sent transport.write Obviously if the OP using "send" without checking the return value, they're doing it wrong!