Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-26 Thread Itamar Turner-Trauring
On 02/24/2013 07:37 PM, Itamar Turner-Trauring wrote: > > > On Sun, Feb 24, 2013 at 7:22 PM, Wenxiang Wu > wrote: > > Hi, > > I am encountering a weird bug, where some TCP client connections > get into a state where the server is able to read data sent from >

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Glyph
On Feb 25, 2013, at 10:24 PM, Wenxiang Wu wrote: > From what I can tell, there isn't a specific pattern that. But from this > small sample size, users that run into this problem are those with higher > levels of usage, i.e. connections with more traffic. > > Also, this *seems* to affect users

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Wenxiang Wu
>From what I can tell, there isn't a specific pattern that. But from this small sample size, users that run into this problem are those with higher levels of usage, i.e. connections with more traffic. Also, this *seems* to affect users in the same LAN more. The 2 groups of affected users I worked

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Gelin Yan
On Tue, Feb 26, 2013 at 8:36 AM, Glyph wrote: > > On Feb 25, 2013, at 4:17 PM, Wenxiang Wu wrote: > > Unfortunately for performance reasons, I cannot test this with any other > reactor. And the only time I have ever been able to reproduce this was when > I left my client running overnight. > > >

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Glyph
On Feb 25, 2013, at 4:17 PM, Wenxiang Wu wrote: > Unfortunately for performance reasons, I cannot test this with any other > reactor. And the only time I have ever been able to reproduce this was when I > left my client running overnight. Understandable; I've never managed to reliably reprodu

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Wenxiang Wu
Unfortunately for performance reasons, I cannot test this with any other reactor. And the only time I have ever been able to reproduce this was when I left my client running overnight. However due to the amount of traffic we are seeing, I am able to reliably find connections stuck in this state. I

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-25 Thread Glyph
On Feb 24, 2013, at 4:22 PM, Wenxiang Wu wrote: > Has anyone else experienced this weird problem? I'd love to provide more > information regarding this bug. I have seen bugs which _might_ be this problem, but I'm not sure. I don't think I've ever been able to reproduce it. Can you test with

Re: [Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-24 Thread Itamar Turner-Trauring
On Sun, Feb 24, 2013 at 7:22 PM, Wenxiang Wu wrote: > Hi, > > I am encountering a weird bug, where some TCP client connections get into > a state where the server is able to read data sent from the client, but not > able to send any data with transport.write(). > Ignoring your workarounds, what

[Twisted-Python] Unable to write to "stuck" TCP client connections

2013-02-24 Thread Wenxiang Wu
Hi, I am encountering a weird bug, where some TCP client connections get into a state where the server is able to read data sent from the client, but not able to send any data with transport.write(). With some help from the #twitsed IRC channel, I was able to gather the following information rega