Dunno why but SocketChannel.accept() sometimes returns null.
This commit is contained in:
parent
bc60f01b58
commit
33c1932353
@ -202,6 +202,10 @@ class NioServerSocketPipelineSink extends AbstractChannelSink {
|
||||
for (;;) {
|
||||
try {
|
||||
SocketChannel acceptedSocket = channel.socket.accept();
|
||||
if (acceptedSocket == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
try {
|
||||
ChannelPipeline pipeline =
|
||||
channel.getConfig().getPipelineFactory().getPipeline();
|
||||
|
Loading…
Reference in New Issue
Block a user