You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by lapson lee <la...@hotmail.com> on 2005/05/31 18:49:15 UTC

Urgent: How to detect client connection has closed.

Hey guys,

I have a problem right now. I wrote a Jsp page to keep sending data to 
client browser. However, no exception was thrown when I use out.print() to 
send something to client even after client has closed his web browser. My 
question is how can i know his browser is closed, so I can stop sending.
Also, from the tomcat logs, the "reset by peer" socket exception was thrown 
by Tomcat. however, seems i don't have a way to catch it.

Can anybody help me with this one... I will be really thankful to any help 
from you.

Thanks,
Luke

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org