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();
|
protected abstract boolean isFlushPending();
|
||||||
|
|
||||||
private void notifyFlushFutures() {
|
protected void notifyFlushFutures() {
|
||||||
if (flushCheckpoints.isEmpty()) {
|
if (flushCheckpoints.isEmpty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -172,11 +172,10 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected boolean doFlushByteBuffer(ByteBuf buf) throws Exception {
|
protected void doFlushByteBuffer(ByteBuf buf) throws Exception {
|
||||||
if (!buf.readable()) {
|
if (!buf.readable()) {
|
||||||
// Reset reader/writerIndex to 0 if the buffer is empty.
|
// Reset reader/writerIndex to 0 if the buffer is empty.
|
||||||
buf.clear();
|
buf.clear();
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only one pending write can be scheduled at one time. Otherwise
|
// 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();
|
ByteBuffer buffer = buf.nioBuffer();
|
||||||
javaChannel().write(buffer, this, WRITE_HANDLER);
|
javaChannel().write(buffer, this, WRITE_HANDLER);
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user