Removing an output filter handler from the filters chain

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 =<br /> element of html documents, after I am done with processing <title> element=<br /> , I want to remove the output filter handler from the output filters chain =<br /> so that we do not process the remaining bucket brigades to improve performa=<br /> nce. Here is the fragment of the script ...=0Aif ($ctx->{done})=0A{ #c=<br /> tx->{done} is true - we are done parsing the title, remove the handler from=<br /> the filter chain=0A$f->remove;=0Areturn Apache::Const::DECLINED;=0A} …=<br /> =0AIt appears that the handler is not removed from the filter chain, the in=<br /> coming bucket brigades are still being processed by the filter. Here i=<br /> s my environment =0ARed Hat Enterprise Linux=0AApache/2.0.46=0Aperl, v5.8.0=<br /> =0A =0AI would appreciate your help. Thanks a lot.=0AWoinshet =<br /> =0A ____________________________________________________________ ______=<br /> __________________=0ABe a better friend, newshound, and =0Aknow-it-all with=<br /> Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HD=<br /> tDypao8Wcj9tAcJ<br /> --0-2092529466-1208208857=:8946<br /> Content-Type: text/html; charset=windows-1252<br /> Content-Transfer-Encoding: quoted-printable<br /> <br /> <html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=<br /> ad><body><div style=3D"font-family:times new roman, new york, times, serif;=<br /> font-size:12pt"><DIV>=0A<P>Hello, </P>=0A<P> </P>=0A<P>I have a perl o=<br /> utput filter handler that processes the <title> element of html docum=<br /> ents, after I am done with processing <title> element, I want to remo=<br /> ve the output filter handler from the output filters chain so that we do no=<br /> t process the remaining bucket brigades to improve performance. Here is the=<br /> fragment of the script</P>=0A<P> </P>=0A<P>...</P>=0A<P>if ($ctx->=<br /> {done})</P>=0A<P>{ #ctx->{done} is true - we are done parsing the title,=<br /> remove the handler from the filter chain</P>=0A<P>$f->remove;</P>=0A<P>=<br /> return Apache::Const::DECLINED;</P>=0A<P>}</P>=0A<P>=85</P>=0A<P>It appears=<br /> that the handler is not removed from the filter chain, the incoming bucket=<br /> brigades are still being processed by the filter.</P>=0A<P> </P>=0A<P=<br /> >Here is my environment </P>=0A<P>Red Hat Enterprise Linux<BR>Apache/2.0.46=<br /> <BR>perl, v5.8.0 </P>=0A<P> </P>=0A<P>I would appreciate your help.</P=<br /> >=0A<P> </P>=0A<P>Thanks a lot.</P>=0A<P>Woinshet<BR></P></DIV></div><=<br /> br>  </body></html><br /> --0-2092529466-1208208857=:8946--</p> </article> <footer> <a href="/">Index</a> | <a href="/impressum.php">Impressum</a> | <a href="/datenschutz.php">Datenschutz</a> | <a href="https://www.xodox.de/">XODOX</a> </footer> </main> </body> </html>