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/07/09 22:31:24 UTC

How do I config tomcat to relay "reset by peer"?

Hi,

I submitted this several weeks ago but got no response, so I thought
I'd try again.

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, as I understand it, after attempting to send
data, a call to checkError() should return "true" if the client has
stopped the request.  However, when I force the reset (by clicking
"stop" on the browser), it's never detected.

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
apparently 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 Services Manager
  Linfield College, McMinnville OR
  (503) 883-2558 <rt...@linfield.edu>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>