Space jdk issue and Ssl vs Netty 3.9

Fix space available with wrong 0 value (some JDK bug on it)
Fix Ssl to be conform with Netty 3.9