Brian Harper wrote: > Questions: > 1. When is my servlet instantiated by Tomcat and its doPost method > called? Once the headers have been received and Tomcat can map the request.
> Does this happen before the entire body of the request has been > received? Yes. > In which case perhaps the delays are simply due to slow client > connections? Maybe. > 2. What is Tomcat doing when the first call to getParameter is made? > What kind of parsing does it have to do to respond? It has to read all of the POST body and parse it. > 3. Any ideas why we'd see such long response times on occasion, but not > consistently? Slow clients is one option. Clients that specify an invalid content length could be another. Tomcat might be hanging around waiting for the extra data that never arrives. Eventually a time-out kicks in. I'd need to check the source to see exactly how this is handled. I can't remember if Tomcat abandons the request, ignores the missing data or does something else. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org