On Wed, 9 Mar 2005 15:06:50 +1100, Grant McDonald
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?
There are no such known limits. I might even go as far to say that there are no such limits, if I were feeling daring. :) Do you have a short program which demonstrates this behavior that you can share? Perhaps after looking at that someone can suggest the cause of the disconnects. Jp