]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Use pure ev_timer for TCP session timeouts instead of rspamd_io_ev
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 22 Oct 2025 08:02:15 +0000 (09:02 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 22 Oct 2025 10:17:47 +0000 (11:17 +0100)
commit6cee785c57df3c9c5d9cfb885e038901727f4887
treefaa440811bf574fe74231bc94c7867596875df07
parent154ad4522230cb07603ee5608f9a7aaf5a12d17f
[Fix] Use pure ev_timer for TCP session timeouts instead of rspamd_io_ev

Replace rspamd_io_ev with pure ev_timer for TCP session timeouts.
rspamd_io_ev is a wrapper for combined IO+timer watchers and creates
unnecessary overhead when used for pure timers:

- Changed session->timer_ev from rspamd_io_ev to ev_timer
- Simplified callback signature to native libev callback
- Use ev_timer_init/ev_timer_start/ev_timer_stop directly
- Removed unnecessary wrapper functions and struct fields

This eliminates wasted memory from dummy ev_io structs and clarifies
the separation between IO watchers and timer-only watchers.
src/plugins/fuzzy_check.c