tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Barclay <>
Subject Re: Potential problem with COMET & sendfile
Date Wed, 21 May 2008 17:48:19 GMT
Remy Maucherat wrote:
> On Tue, 2008-05-20 at 15:40 -0700, Alex Barclay wrote:
>> This works fine in the small. Here's what I'm seeing inside the tomcat 
>> code. I was clued into this by not being able to find my socket (being 
>> kept alive) because all of the pollers were on a "wait" call, rather 
>> than on a "poll" call.
> No need to write a novel to expose a simple problem. BTW, Comet +
> sendfile is not tested at all, so it is possible it won't work right.
> The issue you're seeing is that at the end of sendfile it does a
> processSocket(state.socket) rather than add back to the poller (which is
> the normal procedure at the end of processing many other requests).
It's getting tested now ;-)

I've found a couple of bugs so far. I'll have patches by the end of the 

In our application we're using this for our main file server, sending 
files up to 10MB in length, so this is showing up lots of interesting 


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

View raw message