Hi,

> -----Original Message-----
> From: Emerson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 31, 2002 6:40 PM
> To: Tomcat Users List
> Subject: RE: Broken pipe
> 
> 
> Hi Anton
> 
> Take a look above, i marked the lines that appear my servlet code :
> 

Yeap, sorry. I noticed them when the letter had already been sent.
So, you should be able to catch it. And you could rollback 
the transactions made.
The only bad thing, AFAIK, you'll get the exception not earlier then 
you try to send data back to the user (using either Writer or OutputStream).
So, you cant stop the transaction in the middle of execution and 
your server will have to finnish the job nobody has already been 
interested in.
Isn't it "unnecessary resource drain" that RFC2616 (8.1.4) talks about?
Did I misunderstand it?

> 
> At 09:38 31/1/2002 +0200, you wrote:
> >Hi,
> >
> >> -----Original Message-----
> >> From: Emerson [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, January 30, 2002 7:36 PM
> >> To: Tomcat Users List
> >> Subject: RE: Broken pipe
> >> 
> >> 
> >> .java:162)
> from here:
> 
> >>         at cadServlet.visualizaEstatiticas(cadServlet.java:690)
> >>         at cadServlet.doGet(cadServlet.java:351)
> >>         at cadServlet.doPost(cadServlet.java:408)
> 
> to here I can catch the exception, cadServlet is the name of the servlet
> 
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> >>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >>         at
> >> 
> >
> >Any mention about your own code, right? So, you can't catch it in your
> servlet
> >or jsp. Its internal for container. IMHO you'll have to hack 
> into TC to get
> >this IOException.
> >I've been trying to ask about this problem, or if its not a problem and I
> just
> >crazzy :)
> >I really want to get notified of connection closing event.
> >Nobody answered :(
> 
> Emerson Cargnin
> TRE-SC
> Setor de Desenvolvimento 
> Tel: (48) 251-3700 - Ramal 3134
> 

Anton.

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to