Doug MacEachern wrote:

> i see.  it does get called if pre-loaded in modperl_extra.pl:
> use TestApache::write ();
> 
> can you confirm?


Confirmed.

> and you said it works ok with 5.6.1 without the pre-load, right?


I don't know what happened but I cannot reproduce it anymore with 
5.6.1-ithread. I've even reversed the latest patches (may be I didn't 
reverse them all) :( But see below for the summary:


> is that ithread 5.6.1?


Yes.

./Configure -des -Dprefix=/home/stas/perl/5.6.1-ithread \
-Dusethreads -Doptimize='-g' -Duseshrplib -Dusedevel 

> no idea why it isn't being called if the END block is added at request
> time, i'll look into it.


I see a few distinct problems here with 5.7.2 -ithread patch 13540:

- the END block doesn't get called at the shutdown, unless preloaded at 
the server startup.

- If the module is preloaded, the END block gets called twice (twice on 
restart and twice more on shutdown). On shutdown I'd expect %CACHE to be 
  non-empty, but both times it gets an empty %CACHE (talking about 
Apache::TestUtil, where we cache autogeneratd files/dirs and want to 
cleanup on shutdown/end of test). Which leads me to think that its a 
different instance of the package.

with 5.6.1-ithread it's similar, but with preloaded module, it calls the 
END block on restart, but not on shutdown. So it behaves differently.

_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to