Fix more compilation errors
This commit is contained in:
parent
0941d617d9
commit
c57e903c4d
@ -722,7 +722,7 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
|
||||
|
||||
protected abstract boolean isFlushPending();
|
||||
|
||||
private void notifyFlushFutures() {
|
||||
protected void notifyFlushFutures() {
|
||||
if (flushCheckpoints.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
@ -172,11 +172,10 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean doFlushByteBuffer(ByteBuf buf) throws Exception {
|
||||
protected void doFlushByteBuffer(ByteBuf buf) throws Exception {
|
||||
if (!buf.readable()) {
|
||||
// Reset reader/writerIndex to 0 if the buffer is empty.
|
||||
buf.clear();
|
||||
return true;
|
||||
}
|
||||
|
||||
// Only one pending write can be scheduled at one time. Otherwise
|
||||
@ -187,7 +186,6 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
||||
ByteBuffer buffer = buf.nioBuffer();
|
||||
javaChannel().write(buffer, this, WRITE_HANDLER);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user