diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 3a46a520..51c52c1f 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -3077,7 +3077,7 @@ void Worker::Exec() } } - m_serverQuerySpaceBase = m_serverQuerySpaceLeft = ( m_sock.GetSendBufSize() / ServerQueryPacketSize ) - ServerQueryPacketSize; // leave space for terminate request + m_serverQuerySpaceBase = m_serverQuerySpaceLeft = std::min( ( m_sock.GetSendBufSize() / ServerQueryPacketSize ), 8*1024 ) - 4; // leave space for terminate request m_hasData.store( true, std::memory_order_release ); LZ4_setStreamDecode( (LZ4_streamDecode_t*)m_stream, nullptr, 0 );