mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Process metric callbacks from the main-loop thread
This avoids the callbacks from being processed on the worker thread spawned by Civetweb. It fixes data race issues with lookups involving global variables, amongst other threading issues.
This commit is contained in:
parent
9d9cc51e9d
commit
7ac7ce1d2b
10 changed files with 130 additions and 11 deletions
|
@ -5883,6 +5883,13 @@ export {
|
|||
|
||||
type MetricVector : vector of Metric;
|
||||
type HistogramMetricVector : vector of HistogramMetric;
|
||||
|
||||
## Maximum amount of time for CivetWeb HTTP threads to
|
||||
## wait for metric callbacks to complete on the IO loop.
|
||||
const callback_timeout: interval = 5sec &redef;
|
||||
|
||||
## Number of CivetWeb threads to use.
|
||||
const civetweb_threads: count = 2 &redef;
|
||||
}
|
||||
|
||||
module GLOBAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue