Dunno why but SocketChannel.accept() sometimes returns null.

This commit is contained in:
Trustin Lee 2008-09-25 11:05:45 +00:00
parent bc60f01b58
commit 33c1932353

View File

@ -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();