Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread mackenna
On Aug 26, 2009, at 7:39 AM, Adam Prime wrote: A non-code comment, but there seems to be some consternation about the "same terms as perl itself" license. See the link below: http://perlbuzz.com/2009/07/help-end-licensing-under-same-terms-as- perl-itself.html Inside many programmers, nasc

Re: RFC: Apache2::CloseKeepAlive

2009-08-28 Thread mackenna
Thanks for your comments. They lead to lots to think about and try. I looked up "sprite sheets" and they seem to be graphics that include lots of little tiled figures used in video games. How does a browser know to split them up into separate images that pages can then call out individually

Re: mod_perl2 per directory

2009-09-18 Thread mackenna
On page http://perl.apache.org/docs/2.0/user/config/ config.html#mod_perl_Directives_Argument_Types_and_Allowed_Location you can see the following line in the table that defines the scope of the various directives: PerlInterpStart TAKE1 SRV SRV means "server scope" which t

Re: FreeBSD 7.2, mod_perl2 & Apache2::Cookie (libapreq2)

2009-10-30 Thread mackenna
The man you want at the FreeBSD lists is Philip M. Gollucci. He maintains libapreq2 in the ports collection, and was very helpful to me when I was trying to get the module to build, earlier this year. Good Luck and please report your results to this list when this is settled, cmac On Oct 30,

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread mackenna
Have you been through these threads already? The first one seems quite like what you're doing. http://mail-archives.apache.org/mod_mbox/perl-modperl/200908.mbox/% 3c59a07310908250820m1f789901g22eece5b2897c...@mail.gmail.com%3e http://www.gossamer-threads.com/lists/modperl/modperl/100099 Is the

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread mackenna
You made no comment on the links I sent you earlier today. They had lots of good advice. Particularly the first one suggested not forking the Apache process, but using an ap(1) call to start a process to do the additional processing. OK, the ap(1) alternative was a bit light on details. How abo

Re: mod_perl2 + fork + DBI = Chaos

2010-01-25 Thread mackenna
at(1) is a Unix command to start a process. Assuming you're on a Unix/Linux box, type "man at" to get the story. A cleanup handler is more pleasant than a prostate exam. You can spend your life waiting for others. Just write a routine called "cleanup" and have it do something like make a log en

Re: 302 Redirect not working as expected with PerlCleanupHandler and Firefox under ModPerl::Registry

2010-01-26 Thread mackenna
The warning from William T. made me think to ask: Does your site have "KeepAlive On" in httpd.conf? (If not I can't think of anything to suggest...) If so, try adding this as part of the redirect: use Apache2::Connection(); use Apache2::RequestRec(); ... my $c = $r->connection(); $c->ke

Re: 302 Redirect not working as expected with PerlCleanupHandler and Firefox under ModPerl::Registry

2010-01-27 Thread mackenna
Jan 27, 2010, at 5:08 AM, Tosh Cooey wrote: The good news is that Mr. Mackenna got it! If I set "KeepAlive Off" in apache2.conf then it all works fine. Below is a functioning long process thingy which works with "KeepAlive On" and Firefox. I just hope it works with

Re: global variable

2010-02-03 Thread mackenna
I rewrote IPC::MMA from an earlier CPAN module so that I could use shared memory among Apache children. You can read about it at http://search.cpan.org/~mackenna/IPC-MMA-0.6/MMA.pod On Feb 2, 2010, at 9:45 PM, m...@normalperson.e4ward.com wrote: Hello, Is there a method to setup a global

Re: Apache2::SubProcess sucks

2010-02-20 Thread mackenna
On Feb 20, 2010, at 7:01 AM, Tosh Cooey wrote: Anyway, the solution, at least so far until I run into other problems, seems to be to just make a system() call and the called program uses Proc::Daemon and things *seem* to work fine in testing, we'll see when it hits production... Tosh Do

mutual exclusion Q

2008-11-30 Thread mackenna
My Q today may be affected by Apache and/or Perl, so it seems appropriate for this mailing list. I've written a mod-perl module that needs mutual exclusion among Apache child processes using the prefork MPM, so I decided to use a file as a semaphore using Perl's 'flock'. 1. The mutual exc

Re: Info about mp2 and threaded MPMs

2008-12-29 Thread mackenna
One of the fun aspects of this is that the dark-blue-going- on-purple book (which I have) describes how global variables are sometimes shared between threads if they're not declared shared, while your linked page says "only data that is explicitly requested to be shared will be shared between thre

ThreadsPerChild vs THR in top using Event MPM

2009-01-07 Thread mackenna
This is not a mod_perl problem, but I received no response to it on the httpd-users mailing list. I send it in the hope that there are many smart people subscribed to this list who may be able to answer it. If you know of another forum or person that might answer it, please tell me where.

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-15 Thread mackenna
Apache is forgiving/robust about specifying nonexistent phase handlers in httpd.conf and inserts thereto. I was using event, and had to let each thread open its own DBs based on an undefined global. Then I found that the identical traffic-test exerciser could get 66 files/second back in event an

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread mackenna
I started with 'worker', and it had similar performance to what I saw thereafter with 'event'. Actually slightly better, perhaps because 'event' gained no advantage from KeepAlive because each test process stayed locked to one connection. 'worker' and 'event' were experiments that I decided to t

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-16 Thread mackenna
What I did to get worker and event working under FreeBSD 6.3, was to eliminate the child_init handler, and at the start of the response handler do something like my $env; sub handler { # this is the response handler my ($r) = @_; if (!$env) { $env = DbEnv->new;

Re: article about mod_perlite

2009-01-26 Thread mackenna
IMO the profile below does not indicate that the sky is falling. A survey of "how long have you been using computers?" might show a similar distribution. craig www.animalhead.com On Jan 26, 2009, at 10:29 AM, Adam Prime wrote: How long have you been using mod_perl? Just started

Re: RFC: IPC::MMA

2009-02-17 Thread mackenna
IMO, the perl threads sharing mechanism is flawed because (in my short experience with it) it does not allow certain interesting items (e.g. tied) to be shared. I hope that if Perl 6 is ever released it will have a better threading component. w/r/t "figuring out itself", in looking at the code i

Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11

2008-12-24 Thread Craig MacKenna
On Dec 24 00:57, "Philip M. Gollucci" wrote: > > Subject: Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11 > > cr...@animalhead.com wrote: > > Neither mod_perl 2.0.4 nor the current build modperl-2.0_20081223052020 > If you're going to do that 'current build', I'd use revision n

Outgoing content-length apparently 0

2005-04-27 Thread Craig or Merikay MacKenna
ed to do, to make Apache hand off the output from the script to mod_gzip properly, and (far less important) show the proper length in the log? Thanks to anyone who can help, Craig MacKenna Los Gatos, CA 408-353-5037