[Twisted-Python] I am confused on transport.write and transport.writeSomeData

koder chen koder.chen.1984 at gmail.com
Sat Oct 9 05:16:08 EDT 2010


It seems that, when use "self.transport.write" in the protocol implementation,
it will buffer the content for a long time before it actually send it
out, especially
when the size of content is big, is there a 'flush' like method that I
can do the
flush manually?

And when use 'self.transport.writeSomeData', if the size of content to
be sent is
large, it will not be able to send anything. What is the strategy to use it?



More information about the Twisted-Python mailing list