<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.1">
</HEAD>
<BODY>
<TT><FONT COLOR="#1a1a1a">Jean-Paul</FONT></TT>,<BR>
&nbsp;&nbsp; Thank you for this tip! I will try it. Much appreciated.<BR>
<BR>
Darren<BR>
<BR>
On Fri, 2010-02-19 at 13:12 +0000, exarkun@twistedmatrix.com wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 11:33 am, <A HREF="mailto:darren@ontrenet.com">darren@ontrenet.com</A> wrote:
&gt;Hi again,
&gt;   Ok, so now it seems the Int32StringReceiver does not receive
&gt;&quot;stringReceived&quot; events if the sent bytes
&gt;exceed a certain amount. If I send from the client, say 5000 bytes. It
&gt;receives it.
&gt;
&gt;But when i send 7376896 bytes at a time, the client indicates it wrote
&gt;the bytes, but there is not one
&gt;stringReceived callback on the server side of the protocol. No error or
&gt;exception. nothing.
&gt;Is this normal behavior?

Yes.  You've hit the arbitrary additional limit on the maximum length of 
a single string that Int32StringReceiver will accept.  When this limit 
is exceeded, the connection is dropped.  If you really want to accept 
7MB strings from your peer, set the MAX_LENGTH attribute of your 
Int32StringReceiver subclass (or instance) to large enough value.  You 
can also get notification when this limit is exceeded by overriding the 
lengthLimitExceeded method (the default implementation of which is what 
drops the connection).

Jean-Paul

_______________________________________________
Twisted-Python mailing list
<A HREF="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</A>
<A HREF="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>