From e0c3eb2b4aaf5139224dc593635dcff7b01a29bc Mon Sep 17 00:00:00 2001 From: Hanno Hecker Date: Mon, 12 May 2008 14:50:48 +0000 Subject: [PATCH] plugin doc: update for pre- / post-connection hooks, other minor corrections git-svn-id: https://svn.perl.org/qpsmtpd/trunk@901 958fd67b-6ff1-0310-b445-bb7760255be9 --- docs/plugins.pod | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/plugins.pod b/docs/plugins.pod index 7cf1be1..4bba696 100644 --- a/docs/plugins.pod +++ b/docs/plugins.pod @@ -419,12 +419,12 @@ connection to the worker process). Useful for load-management and rereading large config files at some frequency less than once per session. -This hook only works in the F and F -flavours. +This hook is available in the F, F and +F flavours. =cut -NOT FOR: -async, apache, -server and inetd/pperl +NOT FOR: apache, -server and inetd/pperl =pod @@ -433,7 +433,8 @@ methods which (I) take some time, like DNS lookups. This will slow down B incoming connections, no other connection will be accepted while this hook is running! -Arguments this hook receives are: +Arguments this hook receives are (B: currently no C<%args> for +F): my ($self,$transaction,%args) = @_; # %args is: @@ -903,8 +904,8 @@ FIXME: we should run this hook on a ``SIGHUP'' or some other signal? =pod -B This hook only works in the (x)inetd, -forkserver and -prefork -flavours. +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 :-). @@ -1124,7 +1125,9 @@ Plugin gave the answer. =item DENY -Will result in a syntax error, probably not what you want, better use +The client will get a C message, probably not what you want, +better use + $self->qp->respond(502, "Not implemented."); return DONE;