Note that this is probably worth doing for the other backends, though it's only for performance really.

On Mon, 12 May 2008, [EMAIL PROTECTED] wrote:

Author: msergeant
Date: Mon May 12 10:19:31 2008
New Revision: 903

Modified:
  trunk/lib/Qpsmtpd/PollServer.pm

Log:
Make sure non-responding hooks are called appropriately


Modified: trunk/lib/Qpsmtpd/PollServer.pm
==============================================================================
--- trunk/lib/Qpsmtpd/PollServer.pm     (original)
+++ trunk/lib/Qpsmtpd/PollServer.pm     Mon May 12 10:19:31 2008
@@ -56,7 +56,7 @@
    $self->load_plugins;
    $self->load_logging;

-    my ($rc, @msg) = $self->run_hooks("pre-connection");
+    my ($rc, @msg) = $self->run_hooks_no_respond("pre-connection");
    if ($rc == DENYSOFT || $rc == DENYSOFT_DISCONNECT) {
        @msg = ("Sorry, try again later")
          unless @msg;
@@ -164,7 +164,7 @@

sub close {
    my Qpsmtpd::PollServer $self = shift;
-    $self->run_hooks("post-connection");
+    $self->run_hooks_no_respond("post-connection");
    $self->connection->reset;
    $self->SUPER::close;
}


Reply via email to