Opened 11 years ago

Last modified 9 years ago

#5032 defect new

Buffer size in dumbwin32proc.py too small - breaks ampoule with large amount of data

Reported by: squiddy Owned by:
Priority: normal Milestone:
Component: core Keywords: windows win32proc
Cc: Branch:
Author:

Description

As far as I can tell, the buffer size of the pipes created (http://twistedmatrix.com/trac/browser/trunk/twisted/internet/_dumbwin32proc.py#L131) is too small. According to http://msdn.microsoft.com/en-us/library/aa365152(v=vs.85).aspx a value of zero results in a default buffer size (which seems to be 4096 bytes on my test XP). When returning more data, it'll just block.

I attached a small script that will break under Windows XP (tested myself) and 7 (reported by someone else).

Attachments (1)

ampoule_bug.py (711 bytes) - added by squiddy 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by squiddy

Attachment: ampoule_bug.py added

comment:1 Changed 9 years ago by John Popplewell

This issue should be resolved by #5365.

comment:1 Changed 9 years ago by John Popplewell

This issue should be resolved by #5365.

comment:1 Changed 9 years ago by John Popplewell

This issue should be resolved by #5365

Note: See TracTickets for help on using tickets.