tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Preißer <kpreis...@apache.org>
Subject RE: Another Non-blocking IO Question
Date Wed, 27 Nov 2013 16:40:04 GMT

> -----Original Message-----
> From: Konstantin Preißer [mailto:kpreisser@apache.org]
> Sent: Wednesday, November 27, 2013 5:18 PM
> To: 'Tomcat Users List'
> Subject: RE: Another Non-blocking IO Question

> 2) If I read correctly, when onAllDataRead() is called, you call
> asyncContext.complete(); without checking if sos.isReady() is true. This could
> mean that the AsyncContext is completed before the last call to sos.write()
> has finished. When I tried this with Tomcat's NumberWriter example, this
> meant that the browser did not receive all data - the last 8 KB block was
> missing. 

OK, forget this - it was an error in my test. Tomcat correctly wrote all bytes to the response
here.


Regards,
Konstantin Preißer



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


Mime
View raw message