Re: can mp2 flush response output to the client, then continue processing?

2006-03-08 Thread Foo Ji-Haw
Excellent lateral solution! Thanks Tyler. Tyler MacDonald wrote: Foo Ji-Haw <[EMAIL PROTECTED]> wrote: The basis for the need is because I am thinking of having my process call itself (but another uri) to activate another process. Appreciate any tips you can offer. Thanks. A

Re: can mp2 flush response output to the client, then continue processing?

2006-03-08 Thread Tyler MacDonald
Foo Ji-Haw <[EMAIL PROTECTED]> wrote: > The basis for the need is because I am thinking of having my process > call itself (but another uri) to activate another process. > > Appreciate any tips you can offer. Thanks. According to the docs a PerlCleanupHandler may do the trick: http://pe

can mp2 flush response output to the client, then continue processing?

2006-03-08 Thread Foo Ji-Haw
Hi all, I'm wondering if modperl can do the following: When responding to a http post/get, it will send a simple response to the client, close the connection, but continue to do some processing. Pseudo-code is as follows: sub handler { my $r = shift; print "OK"; $r->flush; $r->cl

PERL_CHILD_INIT

2006-03-08 Thread Bill Whillers
Versions: Apache/2.0.54 mod_perl/2.0.1 Where can I verify: PERL_CHILD_INIT=1 PERL_STACKED_HANDLERS=1 Are these callbacks defaulting in mod_perl 2? (Using Apache2::Status, I don't see current values.) How can these be verified without Apache2::Status? Thanks All, Bill

Re: 2 versions

2006-03-08 Thread Perrin Harkins
On Wed, 2006-03-08 at 22:43 +0200, Octavian Rasnita wrote: > Ok, but if I will do this, it will overwrite the old mod_perl because I want > to use it with the same Apache version. Or is it possible to specify > the --prefix and use the full path including the name of the mod_perl file > that will b

Re: 2 versions

2006-03-08 Thread Octavian Rasnita
From: "Richard Kelsch" <[EMAIL PROTECTED]> > > Is it possible to have 2 versions of perl that use mod_perl and libapreq? > > Yes. You just need to tell your new perl what path to live in when you > build it. I think the option is named "PREFIX." Same for apache, and > make sure you use the righ

Re: 2 versions

2006-03-08 Thread Richard Kelsch
On Tue, 2006-03-07 at 14:16 -0500, Perrin Harkins wrote: On Tue, 2006-03-07 at 11:53 +0200, Octavian Rasnita wrote: > Is it possible to have 2 versions of perl that use mod_perl and libapreq? Yes. You just need to tell your new perl what path to live in when you build it. I think the opti

Re: changing global data strategy

2006-03-08 Thread Perrin Harkins
On Tue, 2006-03-07 at 21:05 -0800, Will Fould wrote: > we have a tool that loads a huge store of data (25-50Mb+) from a > database into many perl hashes at start up: each session needs > access to all these data but it would be prohibitive to use mysql or > another databases for multiple, large lo

[ANNOUNCE]Apache2::POST200

2006-03-08 Thread Torsten Foertsch
This email is to announce the new Apache2::POST200: http://search.cpan.org/~opi/Apache2-POST200-0.03/lib/Apache2/POST200.pod The module implements an output filter that intercepts replies with HTTP code 200 to request using the POST method. It turns them into redirects (HTTP code 302) saving the

[ANNOUNCE]Apache2::Translation

2006-03-08 Thread Torsten Foertsch
This email is to announce the new Apache2::Translation: http://search.cpan.org/~opi/Apache2-Translation-0.08/lib/Apache2/Translation.pod Apache2::Translation can be looked at in 2 ways: 1) it is similar to mod_rewrite in that it lives mostly in the uri translation phase where it can change/route

Re: changing global data strategy

2006-03-08 Thread Jonathan Vanasco
how big are these data structures? 200k? 2mb? 20mb? if they're not too big, you could just use memcached. http://danga.com:80/memcached/ http://search.cpan.org/~bradfitz/Cache-Memcached-1.15/Memcached.pm its ridiculously painless to implement. i found it easier that a lot