Skip to content

Commit 60909be

Browse files
authored
Merge pull request #49 from catap/followup
Call 'spamd_child_post_connection_close' hook when a child connection is closed.
2 parents 092f645 + 36e7fd2 commit 60909be

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)