Thanks for that... the patch you mentioned definitely solve this problem...it looks like the default buffer size is 4096 bytes on windows.

minor change of the patch for twisted 11.1 

_pollingfile._PIPE_BUFFER_SIZE has been changed to _pollingfile.FULL_BUFFER_SIZE


thanks again for your guys help.

Regards

gelin yan

On Mon, Nov 21, 2011 at 7:02 PM, Žiga Seilnacht <ziga.seilnacht@gmail.com> wrote:
On 21.11.2011 8:40, gelin yan wrote:
> Hi glyph
>
>       I attached a file for this purpose. there is a number 4073 inside the
> code. when i use any smaller value, the function return a correct result. I
> use win 7&  twisted 11.1 at the moment. I am not sure whether this limit
> comes from os or not.
>
> thanks
>
> gelin yan
>

That sounds like issue 5365:
http://twistedmatrix.com/trac/ticket/5365

Does the patch there fix the issue for you?

Best regards,
Ziga

_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python