From fc96582867acd2bcaef29feaae5c1193969d9a27 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 17 Mar 2026 15:24:46 +0000 Subject: Don't start new curl operations outside the main thread Neither the curl handle, not the operation map is thread safe. This isn't ideal, but it does solve the problem in a safe manor. --- src/ingestor.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index b158f03..c5628d6 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -101,5 +101,6 @@ namespace WebStat { uint32_t hostnameId; CurlMultiPtr curl; mutable CurlOperations curlOperations; + std::thread::id mainThread; }; } -- cgit v1.3