You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ying lcs <yi...@gmail.com> on 2007/09/02 03:34:51 UTC

how to close all the port allocated by tomcat after a doGet() request

Hi,

I have a simple Servlet (stateless) which has a doGet() metohd.

How can I make sure both Tomcat and the client calling that servlet's
doGet()  to close all the ports allocated upon the doGet() request.

Thank you.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: how to close all the port allocated by tomcat after a doGet() request

Posted by David Delbecq <de...@oma.be>.
You certainly do not want to have tomcat stop responding to port it is 
listening too, it would be useless :) Except if you want your tomcat to 
not serve anything to anyone.

If what you want is prevent client browser to use keep-alive connection 
and issue several requests on same connection, take a look at
maxKeepAliveRequests on 
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html


ying lcs a écrit :
> Hi,
>
> I have a simple Servlet (stateless) which has a doGet() metohd.
>
> How can I make sure both Tomcat and the client calling that servlet's
> doGet()  to close all the ports allocated upon the doGet() request.
>
> Thank you.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>   

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org