From 5a2c070898ab0a01fa97638d29d87a1bcf87c142 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Thu, 16 May 2019 15:46:32 -0700 Subject: [PATCH] disable socket mutex usage in WebSocketTransport --- ixwebsocket/IXWebSocketTransport.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ixwebsocket/IXWebSocketTransport.cpp b/ixwebsocket/IXWebSocketTransport.cpp index 9741aae9..b872a750 100644 --- a/ixwebsocket/IXWebSocketTransport.cpp +++ b/ixwebsocket/IXWebSocketTransport.cpp @@ -142,7 +142,7 @@ namespace ix std::string errorMsg; { bool tls = protocol == "wss"; - std::lock_guard lock(_socketMutex); + // std::lock_guard lock(_socketMutex); _socket = createSocket(tls, errorMsg); if (!_socket) @@ -174,7 +174,7 @@ namespace ix std::string errorMsg; { - std::lock_guard lock(_socketMutex); + // std::lock_guard lock(_socketMutex); _socket = createSocket(fd, errorMsg); if (!_socket) @@ -962,7 +962,7 @@ namespace ix ssize_t WebSocketTransport::send() { - std::lock_guard lock(_socketMutex); + // std::lock_guard lock(_socketMutex); return _socket->send((char*)&_txbuf[0], _txbuf.size()); } @@ -1016,7 +1016,7 @@ namespace ix void WebSocketTransport::closeSocket() { - std::lock_guard lock(_socketMutex); + // std::lock_guard lock(_socketMutex); _socket->close(); }