Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-25 Thread Glyph
On Oct 24, 2012, at 11:03 PM, gelin yan wrote: >Thanks for mentioning that. I never submitted any patch before so probably > I need to take some time to investigate how to do it. No problem. It should be fairly easy. If you have any trouble don't hesitate to ask questions. -glyph

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread gelin yan
On Thu, Oct 25, 2012 at 1:03 PM, Glyph wrote: > > On Oct 24, 2012, at 8:48 PM, gelin yan wrote: > > I attach a modified abstract.py here. You may put it in > Path\twisted\internet\iocpreactor > and give it a try. > > > Hi Gelin, > > Can you generate and attach a patch to the ticket, as per

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread Glyph
On Oct 24, 2012, at 8:48 PM, gelin yan wrote: > I attach a modified abstract.py here. You may put it in > Path\twisted\internet\iocpreactor > and give it a try. Hi Gelin, Can you generate and attach a patch to the ticket, as per the instructions on

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-24 Thread gelin yan
On Mon, Oct 22, 2012 at 12:06 PM, Glyph wrote: > > On Oct 20, 2012, at 7:56 PM, gelin yan wrote: > > "A pending operation is indicated when the function that started the > operation returns *FALSE*, and the > *GetLastError*

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-21 Thread Glyph
On Oct 20, 2012, at 7:56 PM, gelin yan wrote: > "A pending operation is indicated when the function that started the > operation returns FALSE, and the GetLastError function returns > ERROR_IO_PENDING. When an I/O operation is pending, the function that started > the operation resets the hEve

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread gelin yan
On Sun, Oct 21, 2012 at 3:35 AM, Glyph wrote: > I'm top-posting just for consistency in this thread, but in the future > please comment inline with trimming :). It's easier to follow for future > readers; if they find a post stand-alone in some web archive, the question > will come before the an

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread Glyph
I'm top-posting just for consistency in this thread, but in the future please comment inline with trimming :). It's easier to follow for future readers; if they find a post stand-alone in some web archive, the question will come before the answer. Anyhow; Mike, you're definitely closer to the

Re: [Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread Mike Winter
This looks like the kind of thing that could involve using Deferred as part of solution. Instead of callLater(0.8,doWrite), design the mechanism to wire up event-source to fire the deferred and make doWrite be the callback. On Oct 20, 2012, at 8:29:10AM, gelin yan wrote: > Hi All > > A few

[Twisted-Python] a possible solution for ticket 5562

2012-10-20 Thread gelin yan
Hi All A few months ago, I reported a bug about IOCP. Last night I spent several hours on its implementation and finally found out a possible solution for that. when sending some small chunks data continuously, the buffer will pile them up and send to IOCP; however there is a SEND_LIMIT (128K