Merge pull request #1024 from drewhk/wip-2733-netty-workerpool-shutdown-drew
Fixed issue with Netty not releasing worker threads properly #2733
This commit is contained in:
commit
1b533412b5
1 changed files with 5 additions and 1 deletions
|
|
@ -379,7 +379,11 @@ class NettyTransport(private val settings: NettyTransportSettings, private val s
|
|||
_ ← always(channelGroup.write(ChannelBuffers.buffer(0)))
|
||||
_ ← always({ channelGroup.unbind(); channelGroup.disconnect() })
|
||||
_ ← always(channelGroup.close())
|
||||
} inboundBootstrap.releaseExternalResources()
|
||||
} {
|
||||
// Release the selectors, but don't try to kill the dispatcher
|
||||
if (UseDispatcherForIo.isDefined) inboundBootstrap.shutdown()
|
||||
else inboundBootstrap.releaseExternalResources()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue