Fix 2 race conditions detected with TSan, one in CobraMetricsPublisher::push and another one in WebSocketTransport::sendData (that one was bad).
This commit is contained in:
1 parent
490fbf4cb5
commit
94c589f696
8 files changed
+45
-3
No files matched your search
@@ -867,7 +867,10 @@ namespace ix
|
||||
message_end = compressedMessage.end();
|
||||
}
|
||||
|
||||
_txbuf.reserve(wireSize);
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_socketMutex);
|
||||
_txbuf.reserve(wireSize);
|
||||
}
|
||||
|
||||
// Common case for most message. No fragmentation required.
|
||||
if (wireSize < kChunkSize)
|
||||
|
||||
@@ -6,4 +6,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define IX_WEBSOCKET_VERSION "6.2.5"
|
||||
#define IX_WEBSOCKET_VERSION "6.2.6"
|
||||
Reference in new issue
Block a user