On 22/12/2010 16:31, shrikant patel wrote:
> We are using tomcat connector as follows -->
> <Connector connectionTimeout="500000" port="8080" protocol="HTTP/1.1" ...
> 
> Based on the documentation we are using the blocking call, right?

It depends. Probably the BIO connector but it could also bee the APR
connector. The logs will tell you which.

> I have basic understanding of NIO. My understanding is that tomcat
> internally use Java NIO to read the request into buffer. When complete
> request is read then dispatch it to servlet for processing. That way each
> servlet thread is not blocked on IO. Similarly in case of response, it get
> response from servlet, keep buffering it and send it to client. This way
> servlet is not completely blocked for entire duration of the response being
> send to client.
> Please let me know if this is correct.

No. That is wrong. There is more (simulated) blocking I/O happening than
you think.

> Is there document in this regards you can point to get better understanding?

Bottom of this page.
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to