On Wed, 28 Feb 2007 20:52:21 +0100
Hans Salvisberg <[EMAIL PROTECTED]> wrote:

> Is there a hook that is always fired at the end of a connection under 
> xinetd?
> 
> If qpsmtpd disconnects, then hook_disconnect() and 
> hook_post_connection() are fired. But if the other side disconnects 
> without a QUIT, then neither of them are fired.
Does the attached diff work? It should fire the post-connection hook on
disconnect w/o QUIT.

        Hanno
--- qpsmtpd.orig	2007-03-01 18:15:39.000000000 +0100
+++ qpsmtpd	2007-03-01 18:16:32.000000000 +0100
@@ -22,6 +22,7 @@
 $qpsmtpd->load_plugins();
 $qpsmtpd->start_connection();
 $qpsmtpd->run();
+$qpsmtpd->run_hooks("post-connection");
 
 __END__
 

Reply via email to