On 30/07/13 13:55, Laurens Van Houtven wrote:
On Tue, Jul 30, 2013 at 2:44 PM, Phil Mayers <p.may...@imperial.ac.uk
<mailto:p.may...@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!

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to