Trigger the read() after the registration was complete. See #396
This commit is contained in:
parent
e58d657421
commit
7d33846690
@ -108,8 +108,15 @@ public class AioSocketChannel extends AbstractAioChannel implements SocketChanne
|
|||||||
if (ch == null) {
|
if (ch == null) {
|
||||||
ch = AsynchronousSocketChannel.open(AsynchronousChannelGroup.withThreadPool(eventLoop()));
|
ch = AsynchronousSocketChannel.open(AsynchronousChannelGroup.withThreadPool(eventLoop()));
|
||||||
config = new AioSocketChannelConfig(javaChannel());
|
config = new AioSocketChannelConfig(javaChannel());
|
||||||
|
return null;
|
||||||
} else if (remoteAddress() != null) {
|
} else if (remoteAddress() != null) {
|
||||||
read();
|
return new Runnable() {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
read();
|
||||||
|
}
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user