412234 fix bug where NetworkTrafficSelectChannelEndpoint counted bytes wrong on incomplete writes
This commit is contained in:
parent
a85711420d
commit
f8049caf3d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue