Removing an output filter handler from the filters chain
am 14.04.2008 23:34:17 von woinshet abdella--0-2092529466-1208208857=:8946
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
Hello,
I have a perl output filter handler that processes the
element of html documents, after I am done with processing
, I want to remove the output filter handler from the output filters chain =
so that we do not process the remaining bucket brigades to improve performa=
nce. Here is the fragment of the script ...=0Aif ($ctx->{done})=0A{ #c=
tx->{done} is true - we are done parsing the title, remove the handler from=
the filter chain=0A$f->remove;=0Areturn Apache::Const::DECLINED;=0A} =
=0AIt appears that the handler is not removed from the filter chain, the in=
coming bucket brigades are still being processed by the filter. Here i=
s my environment =0ARed Hat Enterprise Linux=0AApache/2.0.46=0Aperl, v5.8.0=
=0A =0AI would appreciate your help. Thanks a lot.=0AWoinshet =
=0A ____________________________________________________________ ______=
__________________=0ABe a better friend, newshound, and =0Aknow-it-all with=
Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HD=
tDypao8Wcj9tAcJ
--0-2092529466-1208208857=:8946
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable
ad>
Hello,
=0A=0A
I have a perl o=
utput filter handler that processes the <title> element of html docum=
ents, after I am done with processing <title> element, I want to remo=
ve the output filter handler from the output filters chain so that we do no=
t process the remaining bucket brigades to improve performance. Here is the=
fragment of the script
=0A
...
=0Aif ($ctx->=
{done})
{ #ctx->{done} is true - we are done parsing the title,=
remove the handler from the filter chain
$f->remove;
=0A=
return Apache::Const::DECLINED;
}
=0A=85
=0AIt appears=
that the handler is not removed from the filter chain, the incoming bucket=
brigades are still being processed by the filter.
=0A >Here is my environment =0A
Red Hat Enterprise Linux
Apache/2.0.46=
perl, v5.8.0
=0A
I would appreciate your help.
>=0A=0A
Thanks a lot.
=0AWoinshet
br>
--0-2092529466-1208208857=:8946--