NETTY-182 NIO server socket sometimes does not shut down

* Should not break the loop after swallowing exceptions in Boss.
This commit is contained in:
Trustin Lee 2009-06-24 02:58:10 +00:00
parent fa51403eb2
commit 8dd55b0368

View File

@ -239,10 +239,8 @@ class NioServerSocketPipelineSink extends AbstractChannelSink {
// raised. // raised.
} catch (CancelledKeyException e) { } catch (CancelledKeyException e) {
// Raised by accept() when the server socket was closed. // Raised by accept() when the server socket was closed.
break;
} catch (ClosedSelectorException e) { } catch (ClosedSelectorException e) {
// Raised by accept() when the server socket was closed. // Raised by accept() when the server socket was closed.
break;
} catch (ClosedChannelException e) { } catch (ClosedChannelException e) {
// Closed as requested. // Closed as requested.
break; break;