users@grizzly.java.net

Re: Grizzly slowly leaking with comet support on version 1.0.39

From: wild <itchy75_at_hotmail.fr>
Date: Tue, 12 Apr 2011 05:28:32 -0700 (PDT)

Swaping the 2 statements did not change anything.

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.

Regards,

William.




--
View this message in context: http://grizzly.1045725.n5.nabble.com/Grizzly-slowly-leaking-with-comet-support-on-version-1-0-39-tp4295847p4298074.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.