I got the solution. When ever you need to check the client connection status just flush the response.
If client has closed the connection you will get SocketException.
- Niketan
Niketan Mourya wrote:
Thanks Ian,
I understand that. but my problem is with the first response only. In my senerio client sends the request and as soon as request reaches to servlet some time it closes the connection. And servlet don't throw any exception.
Ian Hunter wrote:
The default session timeout is 30 minutes; maybe you'd want to consider lowering that.
Keep in mind that if a client browser is using HTTP/1.0, there are no open
connections ever; once they hit your site and get a page, the connection is
immediately broken -- that's how http is supposed to work. Cookies and URL
rewriting are solutions that people came up with to get around this.
----- Original Message -----
From: "Niketan Mourya" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 10:25 AM
Subject: Re: Tomcat doesn't throw exception if client application closses
the socket.
mightI am making a connection to a application( my server running on some other machine with limited number of threads). In the absence of exception I not able to close the connection to my server application (here some other complexity involves). And all the threads of my server application exhausted. The weblogic throws the connection when ever client application closes the connection. But it is not happening with tomcat.
- Niketan.
Ian Hunter wrote:
Hmm. What are you trying to do where that matters? Sounds like there
be a better way...
----- Original Message -----
From: "Niketan Mourya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 9:53 AM
Subject: Tomcat doesn't throw exception if client application closses the
socket.
Hi All,
I am facing a problem because tomcat doesn't throw exception if
client closes the socket connection. Do any body have a
workaround/solution to know about the socket connection status with the
client application. I am using tomcat alone.
Many thanks, -Niketan
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]