Reputation: 231
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?
Upvotes: 6
Views: 2521
Reputation: 12351
You can just close the ServerSocketChannel
created by the ChannelFactory
. Usually, the ServerSocketChannel
is returned by ServerBootstrap.bind()
.
Upvotes: 9