BUG/MEDIUM: mailers: make sure to always apply offsets to now_ms in expiration
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2024 14:39:58 +0000 (15:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2024 14:39:58 +0000 (15:39 +0100)
commit841be4cdd15b3d0834a478cc95ebda0f47171b4d
tree10480b24a5051fb7aff4a683edb5a7f4f60a2ab3
parent808a7cc7775fd54762b94e5e6c0220d8a30453f7
BUG/MEDIUM: mailers: make sure to always apply offsets to now_ms in expiration

Now_ms can be zero nowadays, so it's not suitable for direct assignment to
t->expire, as there's a risk that the timer never wakes up once assigned
(TICK_ETERNITY). Let's use tick_add(now_ms, 0) for an immediate wakeup
instead. The impact here might be mailers suddenly stopping.

This should be backported where it applies.
src/mailers.c