tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <>
Subject Re: Comet changes
Date Mon, 07 May 2007 15:50:36 GMT
Filip Hanik - Dev Lists wrote:
> I thought about the canWrite idea earlier, and there is a difficult 
> problem to get around. the steps are
> 1. canWrite - returns true
> 2. response.getOutputStream().write(8k byte array)
> 3. only 2k gets written during the non blocking write
> so what does one do? does it issue a blocking write for the remainder? 
> it gets quite tricky.

That's the easy part: the bytes are kept in the usual socket buffer, 
which will be flushed when the connection comes back from the write 
poller, just before invoking the write event.


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

View raw message