[Twisted-Python] Help with BananaError
pahan at xzrq.net
Thu Mar 13 21:14:47 EDT 2008
On 3/13/08, Iago Toral <itoral at igalia.com> wrote:
> This tool works mostly ok, except that after some minutes working
> properly redirecting several dozens of messages correctly, the Demux
> breaks (on reception of a normal incoming message) with the following
> error message:
TCP is not a message oriented protocol. It will not preserve message
borders. dataReceived may get called with any amount of bytes from the
incoming stream, not just the amount you expect.
You probably want something like
twisted.protocols.basic.NetstringReceiver to delimit messages for you.
More information about the Twisted-Python