Skip to content

Commit 36e7fd2

Browse files
committed
Follow spamd to call this hook when connection is closed
1 parent 092f645 commit 36e7fd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spampd.pl

+3
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,9 @@ sub post_accept_hook {
12481248
sub post_client_connection_hook {
12491249
$_[0]->{spampd}->{runtime_stats}->{child_status} = "D";
12501250
$_[0]->update_child_name();
1251+
($_[0]->{spampd}->{sa_version} >= 3) and eval {
1252+
$_[0]->{assassin}->call_plugins("spamd_child_post_connection_close");
1253+
}
12511254
}
12521255

12531256
# Net::Server hook: called when we're using SA Logger or falling back to Net::Server logging.

0 commit comments

Comments
 (0)