Takes advantage of new SSLSocketTemplate to resolve this issue Reviewed-by: xuelei
Reviewed-by: weijun