[Twisted-Python] transport.write performance.
Phil Mayers
p.mayers at imperial.ac.uk
Tue Jul 30 07:31:56 MDT 2013
On 30/07/13 13:55, Laurens Van Houtven wrote:
> On Tue, Jul 30, 2013 at 2:44 PM, Phil Mayers <p.mayers at imperial.ac.uk
> <mailto:p.mayers at 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!
More information about the Twisted-Python
mailing list