tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Brazhnyk <a.brazh...@biconsulting.ws>
Subject Client closes connection
Date Fri, 11 Jan 2002 15:31:51 GMT
Hi!

It seems there is no way to get notified about clients connection closing 
(e.g. 'Stop' button in browser is pressed). Frankly, I was very surprised
when I couldn't have found any single word in Servlet 2.3 Spec regarding
such situation. I've looked through RFC 2616 and (after dozen tries :) ) 
finally:

"
8.1.4 Practical Considerations

...
When a client or server wishes to time-out it SHOULD issue a graceful close 
on the transport connection. Clients and servers SHOULD both constantly watch 
for the other side of the transport close, and respond to it as appropriate.
If a client or server does not detect the other side?s close promptly it could 
cause unnecessary resource drain on the network.
...
"

I would say "it could cause unnecessary resource drain" on the server as well.
Is there chances we'll be able to found something like "ConnectionEventListener"
in future specs and (much sooner I hope) in Tomcat?

P.S. I'll be very glad if I am wrong and just miss something obvious.

P.P.S I'll be happy if somebody tells me if and where I'm wrong.

Thanks in advance.
Anton Brazhnyk

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message