[Twisted-Python] TCP Packet Size Considerations

Grant McDonald gmcdonald at infocomp.com
Tue Mar 8 23:06:50 EST 2005


Hi All,

I am translating a twisted UDP implementation to a TCP implementation and i
have come across some unexpected errors related to the amount of data
written to a TCP transport. When a large amount of data is written to a TCP
connection (approx. 9KB) the connection is dropped and transmission is
unsuccessful. Between about 4KB-9KB (approx.) the connection is not dropped
but the transmission is incomplete as the unpickling raises a ValueError
(insecure pickle string). Under 4KB transmission is faultless. Is this a
known limitation? I was aware of the 8KB of UDP packets but assumed that
there were no such limitations on TCP connections. Can someone please
enlighten me?

Regards,

Grant McDonald

PS. these are very approximate sizes - if need be i can narrow them down
some more.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20050309/e5498da2/attachment.htm 


More information about the Twisted-Python mailing list