From 89f1fb48255b685795908400ebc5552cf022f187 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 5 May 2024 21:04:26 +0200 Subject: [PATCH] Terminate connection when memory limit is exceeded. --- server/TracyWorker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index be781283..97be71e1 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -2763,7 +2763,7 @@ void Worker::Exec() for(;;) { - if( m_shutdown.load( std::memory_order_relaxed ) ) + if( m_shutdown.load( std::memory_order_relaxed ) || ( m_memoryLimit > 0 && memUsage.load( std::memory_order_relaxed ) > m_memoryLimit ) ) { QueryTerminate(); goto close;