[#2280] Correct logic in Native.finishConnect. Fix use of optval parameter in c getOption function. In epoll event loop, check that channel is open before processing event.
Fix buffer leak in test which was introduced while implement ZLIB_OR_NONE support. Related to [#2269]
added support for empty query parameters
Merge branch '4.0' of github.com:netty/netty into 4.0