diff options
| author | fukachan <fukachan> | 2004-08-13 15:02:48 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-08-13 15:02:48 +0000 |
| commit | f3dd33cfe5d500e45114ba6efd7cb0e6c51f2d24 (patch) | |
| tree | 75fa20b9ecd6ef4776b2ff3961a8ffec4eab5c35 /fml/lib/FML/Process/Distribute.pm | |
| parent | b1bba02f89b28e52a15602ba9e2b4ad4bd8e1fe4 (diff) | |
| download | fml8-f3dd33cfe5d500e45114ba6efd7cb0e6c51f2d24.tar.gz fml8-f3dd33cfe5d500e45114ba6efd7cb0e6c51f2d24.tar.bz2 fml8-f3dd33cfe5d500e45114ba6efd7cb0e6c51f2d24.zip | |
temporal failure when external filter process timeouts.
if external filter process timeouts, notify it to $curproc layer, and
distribution process exit(75) for temporal failure.
implement filter_state_{set,get}_tempfail_request().
Diffstat (limited to 'fml/lib/FML/Process/Distribute.pm')
| -rw-r--r-- | fml/lib/FML/Process/Distribute.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Distribute.pm b/fml/lib/FML/Process/Distribute.pm index 5e0d0504..16996298 100644 --- a/fml/lib/FML/Process/Distribute.pm +++ b/fml/lib/FML/Process/Distribute.pm @@ -3,7 +3,7 @@ # Copyright (C) 2000,2001,2002,2003,2004 Ken'ichi Fukamachi # All rights reserved. # -# $FML: Distribute.pm,v 1.153 2004/06/30 15:03:19 tmu Exp $ +# $FML: Distribute.pm,v 1.154 2004/07/23 15:59:09 fukachan Exp $ # package FML::Process::Distribute; @@ -133,6 +133,11 @@ sub verify_request $curproc->_check_filter(); } + if ($curproc->filter_state_get_tempfail_request()) { + $curproc->exit_as_tempfail(); # XXX LONG JUMP! + # NOT REACH HERE + } + $eval = $config->get_hook( 'distribute_verify_request_end_hook' ); $eval .= $config->get_hook( 'article_post_verify_request_end_hook' ); if ($eval) { eval qq{ $eval; }; $curproc->logwarn($@) if $@; } |
