]> git.ipfire.org Git - thirdparty/suricata.git/commit
time: only consider packet threads
authorVictor Julien <vjulien@oisf.net>
Mon, 20 May 2024 20:09:06 +0000 (22:09 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 22 May 2024 18:18:57 +0000 (20:18 +0200)
commit54557997952028f4617ca37c583f4a5fd070236c
tree9a01007403e0863493bb93061a480a63041de574
parent0aaec69303f3ff1d56a180e107995585c89eabf7
time: only consider packet threads

In offline mode, a timestamp is kept per thread, and the lowest
timestamp of the active threads is used. This was also considering the
non-packet threads, which could lead to the used timestamp being further
behind that needed. This would happen at the start of the program, as
the non-packet threads were set up the same way as the packet threads.

This patch both no longer sets up the timestamp for non-packet threads
as well as not considering non-packet threads during timestamp
retrieval.

Fixes: 6f560144c1b9 ("time: improve offline time handling")
Bug: #7034.
src/tm-threads.c