]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Use rspamd event wrapper consistently for TCP session timer
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 9 Oct 2025 08:55:34 +0000 (09:55 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 9 Oct 2025 08:55:34 +0000 (09:55 +0100)
commit296ab95ab9532e70f7a7201de96012a78a868152
tree12473c62c6754993f903a30d4570e7fc2a3770cc
parent27b416a536e22dab25febba3c8fa3ccbfdbfbde0
[Fix] Use rspamd event wrapper consistently for TCP session timer

The TCP session timer was incorrectly mixing rspamd's rspamd_io_ev wrapper
with direct libev API calls (ev_timer_init/start/stop), creating inconsistent
state that could lead to resource management issues.

Fixed by using rspamd_ev_watcher_init/start/stop consistently throughout,
passing fd=-1 for pure timers without file descriptors. Also removed the
now-unused fuzzy_tcp_timer_libev_cb wrapper function.
src/plugins/fuzzy_check.c