Second fix for: NETTY-114 Selectors of the NIO transport are sometimes not waken up

* ServerSocket timeout didn't work as expected.
This commit is contained in:
Trustin Lee 2009-02-01 15:33:33 +00:00
parent d2427cac7a
commit baea5f7a00

View File

@ -201,7 +201,7 @@ class NioServerSocketPipelineSink extends AbstractChannelSink {
public void run() { public void run() {
for (;;) { for (;;) {
try { try {
SocketChannel acceptedSocket = channel.socket.accept(); SocketChannel acceptedSocket = channel.socket.socket().accept().getChannel();
try { try {
ChannelPipeline pipeline = ChannelPipeline pipeline =
channel.getConfig().getPipelineFactory().getPipeline(); channel.getConfig().getPipelineFactory().getPipeline();