]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Force GC after final batch to release all Redis connections 5737/head
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 8 Nov 2025 21:35:31 +0000 (21:35 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 8 Nov 2025 21:35:31 +0000 (21:35 +0000)
commitd6669e9dc58cb47c5b1a7a02843d7f929047e2a5
treed01b98cfe10c04f0bb2779ae6a6ccb46e7530842
parent90c7b226cfc97fdc2423a96844160e1984fde382
[Fix] Force GC after final batch to release all Redis connections

Previously GC was skipped for the final batch (batch_end >= #results),
leaving those connections checked out. The subsequent DEL of idx_key
could hit the pool limit if batch_size was near the limit, leaving the
_processing key behind and exhausting the pool for the next date.

Now collectgarbage() runs after every batch including the last one,
ensuring all connections are released before the DEL operation.
lualib/rspamadm/dmarc_report.lua