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 Fri, 10 Dec 2010 21:34:05 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael,

On 12/6/2010 4:11 PM, Michael Ludwig wrote:
> Ben schrieb am 05.12.2010 um 14:25 (+0800):
>> and send a new request with different parameters. On server side I
>> wanna clean the AsynContext held by previous request.
> 
> Will the server even be notified? I still don't know if and how any HTTP
> server will be notified of this infamous "user hit the cancel button"
> event.

I think if the server tries to flush the response buffer, an exception
will be thrown. That's a pretty hacky way to detect this state, and
isn't really available in an asynchronous context because there's no
event that is in progress during which a flush() could be performed.

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

iEYEARECAAYFAk0CnMwACgkQ9CaO5/Lv0PC1cQCfQk8nBN1oix7Il/V+9BLG5DDV
suUAoLbuLuwsPy6W/4jRQKGkml1kXDML
=r1v9
-----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