Do SSL handshake if socket is readable or writeable.
Fix random connection hanging bug. GOOD WORK TEAM