Topic
  • No replies
jflcere
jflcere
1 Post

Pinned topic close() doesn't work on AsynchronousServerSocketChannel

‏2014-05-07T16:11:17Z |

Doing the following:

                 AsynchronousServerSocketChannel chn = AsynchronousServerSocketChannel.open();
                 chn.setOption(StandardSocketOptions.SO_REUSEADDR, reuseAddress);
                 chn.bind(new InetSocketAddress(ifAddress, port), backlog);
                 chn.close();
 

Doesn't seem to close the channel... The JVM is still binded and "listening" to the port.