Thanks for that... the patch you mentioned definitely solve this problem...it looks like the default buffer size is 4096 bytes on windows.<div><br></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">minor change of the patch for twisted 11.1 </font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="font-size: 11px; ">_pollingfile._PIPE_BUFFER_SIZE has been changed to </span><span class="Apple-style-span" style="font-size: 11px; ">_pollingfile.FULL_BUFFER_SIZE</span></font></span></div>
<div><span class="Apple-style-span" style="font-size: 11px;"><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></span></div><div><span class="Apple-style-span" style="font-size: 11px;"><b><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br>
</font></b></span></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">thanks again for your guys help.</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif">Regards</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">gelin yan</font></div>
<div><font class="Apple-style-span" face="monospace"><font class="Apple-style-span" size="4"><br></font></font><div class="gmail_quote">On Mon, Nov 21, 2011 at 7:02 PM, Žiga Seilnacht <span dir="ltr">&lt;<a href="mailto:ziga.seilnacht@gmail.com">ziga.seilnacht@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 21.11.2011 8:40, gelin yan wrote:<br>
&gt; Hi glyph<br>
&gt;<br>
&gt;       I attached a file for this purpose. there is a number 4073 inside the<br>
&gt; code. when i use any smaller value, the function return a correct result. I<br>
</div>&gt; use win 7&amp;  twisted 11.1 at the moment. I am not sure whether this limit<br>
<div class="im">&gt; comes from os or not.<br>
&gt;<br>
&gt; thanks<br>
&gt;<br>
&gt; gelin yan<br>
&gt;<br>
<br>
</div>That sounds like issue 5365:<br>
<a href="http://twistedmatrix.com/trac/ticket/5365" target="_blank">http://twistedmatrix.com/trac/ticket/5365</a><br>
<br>
Does the patch there fix the issue for you?<br>
<br>
Best regards,<br>
Ziga<br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</div></div></blockquote></div><br></div>