tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rémy Maucherat" <remy.mauche...@gmail.com>
Subject Re: how to close a comet request outside of an event?
Date Thu, 26 Apr 2007 18:04:37 GMT
On 4/26/07, Sebastiaan van Erk <sebster@sebster.com> wrote:
> I don't understand why the client does not get an immediate -1 (EOF) on
> the read() as soon as I do this. The socket itself does not need to be
> closed, but the output stream close should flush the output stream and
> call shutdownOutput() on the underlying socket.

No.

> At the moment I have no way of asynchronously ending a response.

Calling close() on the event or on the output stream ends a response
(objects used for processing of the request will be recycled on the
next event, however).

Rémy

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


Mime
View raw message