tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
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

Filip
>
> Alex.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>


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


Mime
View raw message