users@grizzly.java.net

Re: Grizzly slowly leaking with comet support on version 1.0.39

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Tue, 12 Apr 2011 14:39:49 +0200

> So what should I do in order to make sure the body has been fully read ?
>
> In fact, the service method of the servlet is overridden and the sequence he
> describe in the previous post is put in the service method of HttpServlet.
> Should I add the folowing code ?
>
> byte[] buffer = new byte[1024];
> while(request.getInputStream().read(buffer) != -1) {}
>
> I still don't understand why I should read the body because nothing is
> supposed to be in it.
If there is nothing to read the code above shouldn't have any effect.
But you mentioned that comet handler is being registered for HTTP posts
too, so let's just check that.

What are you using on client side? Is it a web browser?

Thanks.

Alexey.