Hi,
If the body of the POST request is not present at the time of the
getParameter() call, it returns null even if the parameter value is set.
How to reproduce:
1) Send the headers of a POST request to the CometProcessor.
2) in the event() method of the CometProcessor use getParameter(); it
will return null.
3) Send the headers and the body of a POST request to the CometProcessor
with a breakpoint at Http11NioProcessor line 839.
4) Press play.
5) in the event() method of the CometProcessor use getParemeter(); it
will return the parameter value.
Perhaps it's not allowed to use getParameter() when handling a Comet
request? However, it should be documented. I actually have this go wrong
every now and then without the breakpoint, meaning that it is not an
artificial bug and does actually happen. It might not be a good idea to
have getParameter() block and wait for the request body, since this
would cause blocking in the event() method.
Regards,
Sebastiaan
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]