tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Can tomcat detect disconnection by client side in Async mode?
Date Sun, 12 Dec 2010 17:11:40 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 12/10/2010 5:30 PM, Caldarale, Charles R wrote:
> There is a Socket.isOutputShutdown() method that /might/ indicate 
> that the client sent an RST, but the exact JRE implementation may
> well be platform-specific. Failing that, writing to the socket is the
> only way I know of to be sure if the client is still listening (and
> even that's not a guarantee).

This is what I was thinking when I posted to this thread. The problem is
that in asynchronous mode, there may not be a thread handling an event
when the RST occurs, so the async request may just sit around waiting to
be cleaned-up instead of being pro-active.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0FAkwACgkQ9CaO5/Lv0PBXQQCfeNpEW24r/UVVB7YZcvk0qyay
xnQAmwX4dewcuXiNbYiRxGh5nrsyMP7M
=Pt+1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message