Checking if protocol will work without closing the socket.