You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rob Tanner <rt...@linfield.edu> on 2002/06/27 01:00:07 UTC
Detecting "Connection reset by peer"
I need to know if the client browser is still actively awaiting a
response from the servlet or whether the users has pressed "stop",
clicked on someother link, etc.
With class PrintWriter (so the manual says), after attempting to send
data, a call to checxkError() should return "true" if the client has
stopped the request. But it's not working that way.
According to Java Servlet Programming, 2nd Ed. (Jason Hunter, published
by O'Reilly), p 159, the server is not required to throw an IOException
of set PrintWriter's error flag after the client disconnects, and
apparentlt that's what's happening to me.
I am running Tomcat 3.2.4 under Apache on Linux. Is this something
configurable? It's critically important that I be able to catch it.
Thanks,
Rob
_ _ _ _ _ _ _ _ _ _
/\_\_\_\_\ /\_\ /\_\_\_\_\_\
/\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __ /\/_/ /\/_/ PROFUNDUM VIDITUR
/\/_/_/_/_/ /\_\ /\/_/ /\/_/
/\/_/ \/_/ /\/_/_/\/_/ /\/_/ (Whatever is said in Latin
\/_/ \/_/ \/_/_/_/_/ \/_/ appears profound)
Rob Tanner
UNIX and Networks Manager
Linfield College, McMinnville OR
(503) 434-2558 <rt...@linfield.edu>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>