tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <>
Subject Re: Potential problem with COMET & sendfile
Date Thu, 22 May 2008 04:01:55 GMT
Alex Barclay wrote:
> Filip Hanik - Dev Lists wrote:
>> I don't see any use case for Comet+sendfile make sense.
>> but if you do it, you should
>> ...
>> set your sendfile stuff
>> call CometEvent.close()
>> .....
>> ie, the event shouldn't be cometized when doing sendfile, it makes 
>> zero sense since when the file is sent, the HTTP request is over.
> You're right. In this case because I'm dealing with the request in the 
> begin event and doing a sendfile the request won't be cometized. The 
> other case is where the verb is a put or a post at which point it will 
> be cometized. Yes I am doing a close on the event, it breaks really 
> horribly if you don't do this.
yes, even then you shouldn't do this using comet, just a regular 
servlet, there is no reason for doing sendfile using comet, it makes 
little sense, and I don't think it makes sense for us to support it either

> Alex.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message