[Twisted-Python] dataReveived() buffer best practice?
Phil Mayers
p.mayers at imperial.ac.uk
Fri Oct 7 05:47:46 MDT 2011
On 10/06/2011 10:06 PM, exarkun at twistedmatrix.com wrote:
>> I also ran a tcpdump to confirm � The opposite server is obviously
>> pushing
>> content to the socket in arbitrary frequencies, ending up in my
>> dataReceived() method to get called arbitrarily as well.
>
> This is not so obvious. Any hop along the route may fragment the data.
It is quite unusual (though not unheard of) for something to re-segment
the TCP stream. IP level fragmentation might occur, but it's relatively
uncommon in todays IP networks, and is anyway irrelevant to TCP - the
TCP stack will only see a reassembled IP packet.
More information about the Twisted-Python
mailing list