Re: Another Non-blocking IO Question

2013-11-27 Thread Daniel Mikusa
er 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 changes and confirmed they worked

Re: Another Non-blocking IO Question

2013-11-27 Thread Daniel Mikusa
On Nov 27, 2013, at 11:18 AM, Konstantin Preißer 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-bl

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

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 t

Re: Another Non-blocking IO Question

2013-11-27 Thread Daniel Mikusa
ote: >>>>> On 25/11/2013 17:39, Daniel Mikusa wrote: >>>>>> On Nov 25, 2013, at 12:19 PM, "Caldarale, Charles R" >>>>>> wrote: >>>>>> >>>>>>>> From: Daniel Mikusa [mailto:dmik...@gopivotal.co

Re: Another Non-blocking IO Question

2013-11-26 Thread Mark Thomas
;>>> On Nov 25, 2013, at 12:19 PM, "Caldarale, Charles R" >>>>> wrote: >>>>> >>>>>>> From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: >>>>>>> Another Non-blocking IO Question >>>>>>

Re: Another Non-blocking IO Question

2013-11-26 Thread Daniel Mikusa
uot; >>>> 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 request

Re: Another Non-blocking IO Question

2013-11-26 Thread Daniel Mikusa
usa [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: >>>>

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" >> wrote: >> >>>> From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: >>>> Another Non-block

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" > wrote: > >>> From: Daniel Mikusa [mailto:dmik...@gopivotal.com] Subject: >>> Another Non-blocking IO Question >> >>> Most of the time it

Re: Another Non-blocking IO Question

2013-11-25 Thread Daniel Mikusa
On Nov 25, 2013, at 12:19 PM, "Caldarale, Charles R" 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 th

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 "onW

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 t

Non-blocking IO Question

2013-11-24 Thread Daniel Mikusa
I have a question on usage with non-blocking IO. I'm setting up a ReadListener which implements onDataAvailable like this... @Override public void onDataAvailable() throws IOException { while (input.isReady()) {