Support for advanced Netty options

Fixes #2747