On 01/12/2014 22:35, r...@apache.org wrote:
> Author: remm
> Date: Mon Dec  1 22:35:30 2014
> New Revision: 1642773
> 
> URL: http://svn.apache.org/r1642773
> Log:
> Move the offending code to the server. Avoid sending a message when nothing 
> has actually been written.

The used flag is only ever set to true. It needs to be reset to false
after a write to avoid multiple flush() calls one after the other
triggering empty writes.

Looking at the code, what would be better is if something along the
lines of using buffer.flip(), buffer.remaining().

I'm looking at the code now so I'll put a test case and a patch together.

Mark


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

Reply via email to