From 0da385368a875bfc204adb14b970b818a642e854 Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Fri, 21 Aug 2026 20:17:31 +0300 Subject: #6172 Crash on recordResultCode mResutCodes gets modified from different threads, mutex it. --- indra/llcorehttp/httpstats.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/llcorehttp/httpstats.cpp') diff --git a/indra/llcorehttp/httpstats.cpp b/indra/llcorehttp/httpstats.cpp index dc2ac35c71..f64752e91e 100644 --- a/indra/llcorehttp/httpstats.cpp +++ b/indra/llcorehttp/httpstats.cpp @@ -41,6 +41,7 @@ HTTPStats::~HTTPStats() void HTTPStats::resetStats() { + std::lock_guard lock(mStatsMutex); mResutCodes.clear(); mDataDown.reset(); mDataUp.reset(); @@ -50,6 +51,7 @@ void HTTPStats::resetStats() void HTTPStats::recordResultCode(S32 code) { + std::lock_guard lock(mStatsMutex); std::map::iterator it; it = mResutCodes.find(code); @@ -86,6 +88,7 @@ namespace void HTTPStats::dumpStats() { + std::lock_guard lock(mStatsMutex); std::stringstream out; out << "HTTP DATA SUMMARY" << std::endl; -- cgit v1.3