Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法告诉 netty 停止侦听和接受套接字上的新连接,但要完成当前连接上的任何正在进行的工作?
您可以关闭ServerSocketChannel由ChannelFactory. 通常,ServerSocketChannel由ServerBootstrap.bind().
ServerSocketChannel
ChannelFactory
ServerBootstrap.bind()