Re: Another Non-blocking IO Question

2013-11-27 Thread Daniel Mikusa
: On 25/11/2013 17:39, Daniel Mikusa wrote: On Nov 25, 2013, at 12:19 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang

RE: Another Non-blocking IO Question

2013-11-27 Thread Konstantin Preißer
Hi Dan, -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Sent: Wednesday, November 27, 2013 1:48 PM To: Tomcat Users List Subject: Re: Another Non-blocking IO Question I'm seeing another issue with the same basic test though. After I tested the previous

RE: Another Non-blocking IO Question

2013-11-27 Thread Konstantin Preißer
-Original Message- From: Konstantin Preißer [mailto:kpreis...@apache.org] Sent: Wednesday, November 27, 2013 5:18 PM To: 'Tomcat Users List' Subject: RE: Another Non-blocking IO Question 2) If I read correctly, when onAllDataRead() is called, you call asyncContext.complete

Re: Another Non-blocking IO Question

2013-11-27 Thread Daniel Mikusa
On Nov 27, 2013, at 11:18 AM, Konstantin Preißer kpreis...@apache.org wrote: Hi Dan, -Original Message- From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Sent: Wednesday, November 27, 2013 1:48 PM To: Tomcat Users List Subject: Re: Another Non-blocking IO Question I'm seeing

Re: Another Non-blocking IO Question

2013-11-27 Thread Daniel Mikusa
To: Tomcat Users List Subject: Re: Another Non-blocking IO Question I'm seeing another issue with the same basic test though. After I tested the previous changes and confirmed they worked, I increased the amount of data that the request was sending. int rc = postUrl(true, new

Re: Another Non-blocking IO Question

2013-11-26 Thread Mark Thomas
On 25/11/2013 17:39, Daniel Mikusa wrote: On Nov 25, 2013, at 12:19 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang

Re: Another Non-blocking IO Question

2013-11-26 Thread Mark Thomas
On 26/11/2013 10:46, Mark Thomas wrote: On 25/11/2013 17:39, Daniel Mikusa wrote: On Nov 25, 2013, at 12:19 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works

Re: Another Non-blocking IO Question

2013-11-26 Thread Daniel Mikusa
: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang. You know the ritual: 1) Tomcat version? 2) JDK version? 3) Thread dump? Doh… Tomcat trunk. JDK 1.7.0_45. Took some thread dumps, but I don't think that's going to help here

Re: Another Non-blocking IO Question

2013-11-26 Thread Daniel Mikusa
...@unisys.com wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang. You know the ritual: 1) Tomcat version? 2) JDK version? 3) Thread dump? Doh… Tomcat trunk. JDK 1.7.0_45

Re: Another Non-blocking IO Question

2013-11-26 Thread Mark Thomas
, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang. You know the ritual: 1) Tomcat version? 2) JDK version? 3) Thread dump

Another Non-blocking IO Question

2013-11-25 Thread Daniel Mikusa
I've created a class that implements ReadListener and WriteListener, called EchoListener. It's supposed to echo input to the output stream using the non-blocking IO api. Most of the time it works, but in one case I'm seeing requests hang. I've debugged this a bit and here's what seems to be

RE: Another Non-blocking IO Question

2013-11-25 Thread Caldarale, Charles R
From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang. You know the ritual: 1) Tomcat version? 2) JDK version? 3) Thread dump? in this case onWritePossible (i.e. my WriteListener

Re: Another Non-blocking IO Question

2013-11-25 Thread Daniel Mikusa
On Nov 25, 2013, at 12:19 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: Another Non-blocking IO Question Most of the time it works, but in one case I'm seeing requests hang. You know the ritual: 1) Tomcat