netty/netty — pull request #790 by normanmaurer (2012-12-04 17:29:30+00:00)
Title: [#775] Rework closing logic of Worker/Boss

Before we just shutdown the Executor's which were used to serve the IO, now we only do so if we created them by our own. This means if you create a *ChannelFactory and pass in your own Executor, you will need to shutdown them by yourself after calling releaseExternalResources() on the ChannelFactory. The same is true when create WorkerPool and BossPool instances.

This commit also fixes the problem that the Worker/Boss Thread will never be released if you use an Executor (no ExecutorService).