On 4/7/07, Rémy Maucherat <[EMAIL PROTECTED]> wrote:
On 4/6/07, Elias Naur <[EMAIL PROTECTED]> wrote:
> I'm aware that a correct implementation must empty the buffer on a
> READ event, but as I stated in the original post, a READ event is
> never received (not even when the client forces a disconnect), only
> the initial BEGIN event, so had I included a read on READ it wouldn't
> matter and would only serve to clutter the test case. If I'm supposed
> to read when receiving BEGIN, I'll admit my test is incorrect, but
> then the example at http://tomcat.apache.org/tomcat-6.0-doc/aio.html
> needs to be corrected too.

So you can also confirm APR and NIO do the same ? I don't see how
you're not going to get an error event in that particular case.
However, I can't test it personally, so maybe you can look into this a
bit deeper (otherwise, most likely Filip will).

Rémy


No. Compiling and enabling the APR connector instead of the NIO
connector made the problem go away. There were still no ERROR events
sent after the client disconnect (I guess the connection might timeout
sometime later), but the original problem of 100% CPU usage is gone.

- elias

Reply via email to