-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a race condition in data store flare operations
The race (as seen via Zeek usage) goes like: Thread A: enqueue item, get suspended Thread B: sees mailbox has items Thread B: dequeue item Thread B: extinguish flare Thread A: resume, fire flare That ordering can leave the flare in an active state without any actual items remaining in the mailbox. This patch adds a mutex/lock such that extinguishing of the flare cannot be interleaved between the enqueue and firing of the flare. This likely relates to zeek/zeek#838, zeek/zeek#716, as well as this thread http://mailman.icsi.berkeley.edu/pipermail/zeek/2020-February/015062.html (cherry picked from commit d2737cd)
- Loading branch information
Showing
5 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.3.0 | ||
1.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters