At 07:03 AM 4/23/2004, you wrote:

This also begs the question as to when my servlet gets to see an incoming request - I was concerned that by the time my servlet gets to see the incoming request Tomcat had already read the incoming data and stored it in the HttpServletRequest object - in which case request.getContentLength() is of no help.

Regards
Roger

If anyone has insight into this, I'd be very curious to get a definitive answer. Although I've never explicitly explored this (or read this part of TC's code), it seems like Tomcat reads the entire POST, makes an in-memory copy of it, then passes it along to the Servlet/Filter processing the request. If this is the case, then the InputStream from the ServletRequest is not reading data across the network.


Again, my reasons for surmising this are anecdotal. It seems like it'd be easier and more fault-tolerant to have the above behavior than to truly stream data over the network. Any authoritative input would be appreciated.

Thanks,
justin



______________________________________________
Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential. See:
http://www.nextengine.com/confidentiality.php
______________________________________________


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to