fix sslsocket
clean code
clean code