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
This commit is contained in:
parent
a9e2089ab7
commit
e0c3eb2b4a
@ -419,12 +419,12 @@ connection to the worker process).
|
|||||||
Useful for load-management and rereading large config files at some
|
Useful for load-management and rereading large config files at some
|
||||||
frequency less than once per session.
|
frequency less than once per session.
|
||||||
|
|
||||||
This hook only works in the F<qpsmtpd-forkserver> and F<qpsmtpd-prefork>
|
This hook is available in the F<qpsmtpd-forkserver>, F<qpsmtpd-prefork> and
|
||||||
flavours.
|
F<qpsmtpd-async> flavours.
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
NOT FOR: -async, apache, -server and inetd/pperl
|
NOT FOR: apache, -server and inetd/pperl
|
||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
@ -433,7 +433,8 @@ methods which (I<may>) take some time, like DNS lookups. This will slow down
|
|||||||
B<all> incoming connections, no other connection will be accepted while this
|
B<all> incoming connections, no other connection will be accepted while this
|
||||||
hook is running!
|
hook is running!
|
||||||
|
|
||||||
Arguments this hook receives are:
|
Arguments this hook receives are (B<NOTE>: currently no C<%args> for
|
||||||
|
F<qpsmtpd-async>):
|
||||||
|
|
||||||
my ($self,$transaction,%args) = @_;
|
my ($self,$transaction,%args) = @_;
|
||||||
# %args is:
|
# %args is:
|
||||||
@ -903,8 +904,8 @@ FIXME: we should run this hook on a ``SIGHUP'' or some other signal?
|
|||||||
|
|
||||||
=pod
|
=pod
|
||||||
|
|
||||||
B<NOTE:> This hook only works in the (x)inetd, -forkserver and -prefork
|
B<NOTE:> This hook does not work in Apache currently.
|
||||||
flavours.
|
|
||||||
The only argument is C<$self> and all return codes are ignored, it would
|
The only argument is C<$self> and all return codes are ignored, it would
|
||||||
be too late anyway :-).
|
be too late anyway :-).
|
||||||
|
|
||||||
@ -1124,7 +1125,9 @@ Plugin gave the answer.
|
|||||||
|
|
||||||
=item DENY
|
=item DENY
|
||||||
|
|
||||||
Will result in a syntax error, probably not what you want, better use
|
The client will get a C<syntax error> message, probably not what you want,
|
||||||
|
better use
|
||||||
|
|
||||||
$self->qp->respond(502, "Not implemented.");
|
$self->qp->respond(502, "Not implemented.");
|
||||||
return DONE;
|
return DONE;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user