412234 fix bug where NetworkTrafficSelectChannelEndpoint counted bytes wrong on incomplete writes

This commit is contained in:
Thomas Becker 2013-07-03 18:13:07 +02:00
parent a85711420d
commit f8049caf3d
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ public class NetworkTrafficSelectChannelEndPoint extends SelectChannelEndPoint
if (b.hasRemaining())
{
int position = b.position();
flushed|=super.flush(b);
flushed&=super.flush(b);
int l=b.position()-position;
notifyOutgoing(b, position, l);
if (!flushed)