[Israel.pm] mod_perl question: Ending an apache request with an OK status inside a PerlFixupHandler?

Yuval Yaari yuval at windax.com
Thu Apr 29 03:13:13 PDT 2004


Pinkhas Nisanov wrote:

> I also did this mistake and every time when I changed
>
>"handler" function it took me about half hour to find
>why it stop work. I think best way return apache status
>only from "handler" function, it organize code much better.
>Many times I use "apache" modules for offline tasks.
>  
>
You mean something like [from within the handler subroutine]:

report_error();
return Apache::Constants::DONE();

this?
I might re-write it like that...

>I never did it, but I think "Apache::exit()" will help you:
>http://perl.apache.org/docs/1.0/guide/porting.html#Terminating_requests_and_processes__the_exit___and_child_terminate___functions
>  
>
This is too brutal :)


  --Yuval




More information about the Perl mailing list