Re: read data/infinite loop problem with comet

2007-06-26 Thread Sebastiaan van Erk
modification as a bug fix. Regards, Matthias -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 26, 2007 6:53 PM To: Tomcat Users List Subject: Re: read data/infinite loop problem with comet Hi all, I looked in the Tomcat source code (6.0.13), and

RE: read data/infinite loop problem with comet

2007-06-26 Thread Reich, Matthias
mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 26, 2007 6:53 PM > To: Tomcat Users List > Subject: Re: read data/infinite loop problem with comet > > Hi all, > > I looked in the Tomcat source code (6.0.13), and I really do not > understand how I'm supposed to avoid

Re: read data/infinite loop problem with comet

2007-06-26 Thread Sebastiaan van Erk
Hi, Nobody's ever an idiot for trying to help, and I appreciate the effort even if you misunderstood the question in my email. Perhaps (very likely, probably), I was not very clear either; I already have the context of my question in my mind and as such often forget to make the context adequa

Re: read data/infinite loop problem with comet

2007-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastiaan, Sebastiaan van Erk wrote: > Thanks for the reply. :-) Okay, this is what I get for responding to a question about Comet, something about which I have no familiarity whatsoever. I didn't realize that this was an event handler that basical

Re: read data/infinite loop problem with comet

2007-06-26 Thread Sebastiaan van Erk
Hi all, I looked in the Tomcat source code (6.0.13), and I really do not understand how I'm supposed to avoid the following error: SEVERE: The servlet did not read all available bytes during the processing of the read event What seems to be happening is this: In my event method(): while

Re: read data/infinite loop problem with comet

2007-06-26 Thread Sebastiaan van Erk
Hi Christopher, Thanks for the reply. :-) Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastiaan, Sebastiaan van Erk wrote: I'm having a problem reading data in my Comet servlet. In the BEGIN event I have the following loop: while (request.getInputStream(

Re: read data/infinite loop problem with comet

2007-06-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sebastiaan, Sebastiaan van Erk wrote: > I'm having a problem reading data in my Comet servlet. > > In the BEGIN event I have the following loop: > >while (request.getInputStream().available() > 0) { > // log that in read loop, log availabl

read data/infinite loop problem with comet

2007-06-26 Thread Sebastiaan van Erk
Hi, I'm having a problem reading data in my Comet servlet. In the BEGIN event I have the following loop: while (request.getInputStream().available() > 0) { // log that in read loop, log available() // read some data } // log that read loop is done, log available() return