> 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.