dev@glassfish.java.net

Servlet writing of response is not terminated when client terminates the request

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 27 May 2008 15:09:40 +0200

Hi,

A developer (CC'ed) found a problem with Jersey and responses being
written even if the client terminates the connection i.e. no exception
gets thrown from the OutputStream.write methods.

I reproduced it by writing a simple servlet, see here for more details
[1]. If i go to the URL:

   http://localhost:8080/WebApplication13/TimeOutServlet

then i quit the browser, the servlet still writes output, if i undeploy
it still writes output, i need to restart GF to stop the process.

Paul.

[1] https://jersey.dev.java.net/issues/show_bug.cgi?id=71

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109