diff options
| author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-03-17 15:24:46 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2026-03-17 15:24:46 +0000 |
| commit | fc96582867acd2bcaef29feaae5c1193969d9a27 (patch) | |
| tree | ee26552a7ce3d4e27a2d35acc844926273f6828d /src/ingestor.hpp | |
| parent | d2ecb7f49c3f3b60e3d1f297fd033071a02cfa9a (diff) | |
| download | webstat-fc96582867acd2bcaef29feaae5c1193969d9a27.tar.bz2 webstat-fc96582867acd2bcaef29feaae5c1193969d9a27.tar.xz webstat-fc96582867acd2bcaef29feaae5c1193969d9a27.zip | |
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.
Diffstat (limited to 'src/ingestor.hpp')
| -rw-r--r-- | src/ingestor.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; }; } |
