From 36e7fd25c35b32b55882fcc893161a86fa40723e Mon Sep 17 00:00:00 2001 From: "Kirill A. Korinsky" Date: Mon, 16 Dec 2024 13:32:22 +0100 Subject: [PATCH] Follow spamd to call this hook when connection is closed --- spampd.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spampd.pl b/spampd.pl index f49cc8d..8ed1809 100755 --- a/spampd.pl +++ b/spampd.pl @@ -1248,6 +1248,9 @@ sub post_accept_hook { sub post_client_connection_hook { $_[0]->{spampd}->{runtime_stats}->{child_status} = "D"; $_[0]->update_child_name(); + ($_[0]->{spampd}->{sa_version} >= 3) and eval { + $_[0]->{assassin}->call_plugins("spamd_child_post_connection_close"); + } } # Net::Server hook: called when we're using SA Logger or falling back to Net::Server logging.