Is there a way to tell netty to stop listening and accepting new connections on a socket, but to finish up any ongoing job on current connections?
You can just close the ServerSocketChannel
created by the ChannelFactory
. Usually, the ServerSocketChannel
is returned by ServerBootstrap.bind()
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With