How to stop netty from listening and receiving on a server socket

Is there a way to tell netty to stop listening and accepting new connections on the socket, but to complete any ongoing work on the current connections?

+6
source share
1 answer

You can simply close the ServerSocketChannel created by ChannelFactory . Typically, ServerSocketChannel returns ServerBootstrap.bind() .

+9
source

Source: https://habr.com/ru/post/919474/


All Articles