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:
@ -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