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 (;;) {
|
for (;;) {
|
||||||
try {
|
try {
|
||||||
SocketChannel acceptedSocket = channel.socket.accept();
|
SocketChannel acceptedSocket = channel.socket.accept();
|
||||||
|
if (acceptedSocket == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ChannelPipeline pipeline =
|
ChannelPipeline pipeline =
|
||||||
channel.getConfig().getPipelineFactory().getPipeline();
|
channel.getConfig().getPipelineFactory().getPipeline();
|
||||||
|
Loading…
Reference in New Issue
Block a user