Re: documenting SetHandler perl-script|modperl

2002-06-03 Thread Stas Bekman
On Mon, 3 Jun 2002, Doug MacEachern wrote: > On Mon, 3 Jun 2002, Stas Bekman wrote: > > > Does this mean that any END blocks registered during a request handler, > > will be run at the end of it and not at the shutdown? If not where do > > they go if PL_endav is getting reset to its pre-reque

Re: documenting SetHandler perl-script|modperl

2002-06-03 Thread Doug MacEachern
On Mon, 3 Jun 2002, Stas Bekman wrote: > Does this mean that any END blocks registered during a request handler, > will be run at the end of it and not at the shutdown? If not where do > they go if PL_endav is getting reset to its pre-request value. only if SetHandler is perl-script, PL_endav

Re: documenting SetHandler perl-script|modperl

2002-06-03 Thread Stas Bekman
> > MP_perl_global_entries[] = { > > {"END",MP_GLOBAL_OFFSET(end),MP_GLOBAL_AVCV}, /* END > */ > > > > What's global END()? I thought END always belong to some namespace. > > nope. PL_endav is global. Does this mean that any END blocks registered during a request handler,

Re: documenting SetHandler perl-script|modperl

2002-06-02 Thread Doug MacEachern
On Sun, 2 Jun 2002, Stas Bekman wrote: > Does this also mean that with 'SetHandler modperl' the coder should be > extremely careful not to pollute these globals and therefore we should > add a warning in the relevant docs? yes. ---

Re: documenting SetHandler perl-script|modperl

2002-06-02 Thread Doug MacEachern
On Sun, 2 Jun 2002, Stas Bekman wrote: > MP_perl_global_entries[] = { > {"END",MP_GLOBAL_OFFSET(end),MP_GLOBAL_AVCV}, /* END */ > > What's global END()? I thought END always belong to some namespace. nope. PL_endav is global. > {"ENV",MP_GLOBAL_OFFSET(env),MP_GLOBA

Re: documenting SetHandler perl-script|modperl

2002-06-02 Thread Stas Bekman
Stas Bekman wrote: > Doug MacEachern wrote: > > There is one item of your reply I need more details about: > >>> SetHandler perl-script >> > ... > >>> implies: >> > ... > >>> * there are a few other things that happen in this function, what are >>>they? >> >> >> >> modperl_perl_global_re

Re: documenting SetHandler perl-script|modperl

2002-06-02 Thread Stas Bekman
Doug MacEachern wrote: There is one item of your reply I need more details about: >> SetHandler perl-script ... >>implies: ... >>* there are a few other things that happen in this function, what are >>they? > > > modperl_perl_global_request{save,restore} does something like local() for

Re: mod_perl benchmarking (was Re: documenting SetHandler perl-script|modperl)

2002-05-28 Thread Stas Bekman
David Jacobs wrote: > I've had trouble benchmarking some of my mod_perl scripts on my desktop. > The http_load tool we usually use (all under RedHat) works fine with > static pages or CGI, but when I use it on mod_perl scripts I get a "byte > count wrong" error. This could be because of somethi

mod_perl benchmarking (was Re: documenting SetHandler perl-script|modperl)

2002-05-23 Thread David Jacobs
I've had trouble benchmarking some of my mod_perl scripts on my desktop. The http_load tool we usually use (all under RedHat) works fine with static pages or CGI, but when I use it on mod_perl scripts I get a "byte count wrong" error. This could be because of something unexpected in the header

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Stas Bekman
"perl-script" is exactly what you've in 1.0 "modperl" is the bare bones. See the tests in t/ that run under "modperl" and you will understand what's the difference. SOme time in the future I'll run some benchmarks and will post the results. modperl should be faster than "perl-script". __

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Per Einar Ellefsen
At 00:23 23.05.2002, Issac Goldstand wrote: >Per Einar Ellefsen wrote: > >>At 23:42 22.05.2002, Issac Goldstand wrote: >> >>>Doug MacEachern wrote: >>> On Thu, 23 May 2002, Stas Bekman wrote: >We don't have the difference between > SetHandler perl-script >and > SetHand

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Issac Goldstand
Per Einar Ellefsen wrote: > At 23:42 22.05.2002, Issac Goldstand wrote: > >> Doug MacEachern wrote: >> >>> On Thu, 23 May 2002, Stas Bekman wrote: >>> We don't have the difference between SetHandler perl-script and SetHandler modperl documented. >>> >>> >>> in a nutsh

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Per Einar Ellefsen
At 23:56 22.05.2002, Per Einar Ellefsen wrote: >At 23:42 22.05.2002, Issac Goldstand wrote: >>Doug MacEachern wrote: >> >>>On Thu, 23 May 2002, Stas Bekman wrote: >>> We don't have the difference between SetHandler perl-script and SetHandler modperl documented. >>> >>>in

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Per Einar Ellefsen
At 23:42 22.05.2002, Issac Goldstand wrote: >Doug MacEachern wrote: > >>On Thu, 23 May 2002, Stas Bekman wrote: >> >>>We don't have the difference between >>> SetHandler perl-script >>>and >>> SetHandler modperl >>>documented. >> >>in a nutshell, 'perl-script' does everything it did in 1.x >>'

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Issac Goldstand
Doug MacEachern wrote: >On Thu, 23 May 2002, Stas Bekman wrote: > >>We don't have the difference between >> SetHandler perl-script >>and >> SetHandler modperl >>documented. >> > >in a nutshell, 'perl-script' does everything it did in 1.x >'modperl' does nothing special, just the callback. > c

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Doug MacEachern
On Thu, 23 May 2002, Stas Bekman wrote: > We don't have the difference between >SetHandler perl-script > and >SetHandler modperl > documented. in a nutshell, 'perl-script' does everything it did in 1.x 'modperl' does nothing special, just the callback. > implies: > > * PerlOptions +Glo

Re: documenting SetHandler perl-script|modperl

2002-05-22 Thread Stas Bekman
> BTW, why modperl_env_request_populate() is called only for perl-script > handler and not for modperl? I've figured this one out. That means that if you run under SetHandler "modperl" there is no way to 'Options +SetupEnv' and "perl-script" is the only option. I guess this is how it should be