From c7c6e3afb9b842aad6e30985fbac45b69a1425b1 Mon Sep 17 00:00:00 2001 From: Hanno Hecker Date: Mon, 12 May 2008 15:33:28 +0000 Subject: [PATCH] apache: add post-connection hook, connection->reset git-svn-id: https://svn.perl.org/qpsmtpd/trunk@902 958fd67b-6ff1-0310-b445-bb7760255be9 --- docs/plugins.pod | 2 -- lib/Apache/Qpsmtpd.pm | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/plugins.pod b/docs/plugins.pod index 4bba696..6413e56 100644 --- a/docs/plugins.pod +++ b/docs/plugins.pod @@ -904,8 +904,6 @@ FIXME: we should run this hook on a ``SIGHUP'' or some other signal? =pod -B This hook does not work in Apache currently. - The only argument is C<$self> and all return codes are ignored, it would be too late anyway :-). diff --git a/lib/Apache/Qpsmtpd.pm b/lib/Apache/Qpsmtpd.pm index 1585462..0433324 100644 --- a/lib/Apache/Qpsmtpd.pm +++ b/lib/Apache/Qpsmtpd.pm @@ -34,6 +34,8 @@ sub handler { ); $qpsmtpd->run($c); + $qpsmtpd->run_hooks("post-connection"); + $qpsmtpd->connection->reset; return Apache2::Const::OK; }