Sorry about my mails, i'm newbie with that.
Don't know, why auto-reporter missed important info, but:
Server Version: Apache/2.2.29 (FreeBSD) mod_perl/2.0.8 Perl/v5.20.1
Apache works with worker-mpm
And seems that libapreq2 was not installed, so no Apache2::Request
2014-11-12 21:48 GMT+03:00 A
Made a test script:
=
#!/usr/bin/perl
use Apache2::RequestUtil;
my $request = Apache2::RequestUtil->request;
$request->headers_out->add('Testheader' => 'Testvalue');
$request->err_headers_out->add('TestheaderErr' => 'TestvalueErr');
$request->status(304);
return 304
Please send your responses to the list, not just me.
It looks like this was broken in apache itself prior to 2.2.0. see:
https://issues.apache.org/bugzilla/show_bug.cgi?id=18388
Your bug report doesn't include your apache version though, so i'm not
sure that this is related to your problem or
Can we see the code you're running into this issue with? It sounds like
confusion between $r->headers_out and $r->err_headers_out to me.
Adam
On 14-11-12 05:09 AM, Alexandr Evstigneev wrote:
1. Problem Description:
It seems, that if I set status to 304, all custom headers being ignored
and n
like pkgin lately.)
> Thanks,
> Luca
>
> -Original Message-
> From: Randolf Richardson [mailto:rand...@modperl.pl]
> Sent: martedì 29 luglio 2014 01:17
> To: modperl@perl.apache.org
> Subject: Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and
> Perl
,
Luca
-Original Message-
From: Randolf Richardson [mailto:rand...@modperl.pl]
Sent: martedì 29 luglio 2014 01:17
To: modperl@perl.apache.org
Subject: Re: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl
5.20.0
> I've always found I have to build apr, apr-util
I just tried httpd-2.4.10 under the Illumos distro, OmniOS,
builds fine.
$ bzip -dc httpd-2.4.10-deps.tar.bz2|tar xf -
$ bzip -dc httpd-2.4.10.tar.bz2|tar xf -
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/gcc-4.8.1/bin:/usr/sfw/bin \
CC=gcc CFLAGS="-m64 -O3" LDFLAGS="-m64" \
./configure --with-e
> I've always found I have to build apr, apr-util and apr-iconv separately
> first if I am building mod_perl from scratch. You might try that, then build
> Apache using --with-apr, --with-apr-util and --with-apr-iconv args, then
> build mod_perl using MP_APR_CONFIG and see if you get past that.
I've always found I have to build apr, apr-util and apr-iconv separately first
if I am building mod_perl from scratch. You might try that, then build Apache
using --with-apr, --with-apr-util and --with-apr-iconv args, then build
mod_perl using MP_APR_CONFIG and see if you get past that.
Mark
On Sat, Jan 19, 2013 at 12:45 PM, Idel Fuschini wrote:
> Hi all,
> I have compiled apache webserver with this configuration:
>
> ./configure --prefix=/foo/apache-2.2.23-worker-1st --enable-modules=all
> --enable-mods-shared=all --disable-ipv6 --enable-ssl
> --with-ssl=/foo/openssl-1.0.1c --enable-
anyone else who would find it interesting, you're
more than welcome to share a link to it with them. My main concern
is that I want to see more people using ModPerl 2.
> Joe N
>
> -Original Message-
> From: Randolf Richardson
> Sent: Tuesday, August 21, 2012 5:13 PM
&g
Hi Joe,
have also a look at Frameworks and Interfaces like PSGI or Catalyst.
They provide a more generic way to do these things:
"parsed request, handles args as querystrings and Post data, uploads a
file or two, and returns an html page to the requestor"
that way you can use mod_perl in the b
> Hi,
> I´m finding the online documentation regarding mod_perl2 confusing
> with regards to all the various modules dealing with request structures etc:
> APR::Request, Apache2::Request, Apache2::RequestRec, Apache2::Upload,
> etc.
> Does anyone know of a tutorial or example code that sorts these
-Original Message-
From: Fred Moyer
Try this link:
http://perl.apache.org/docs/2.0/user/intro/start_fast.html
--
Yes, thanks - I've read that.
-Original Message-
From: Fred Moyer
For handling POST data you will likely want to install libapreq2,
which i
I'd recommend the book:
http://www.amazon.com/Writing-Apache-Modules-Perl-C/dp/156592567X
It's a bit old but many of the topics in it are still relevant and
useful. Plus, with it being so old, you can get used copies of it very
affordably.
Hope this helps!
Warm Regards,
Jordan Michaels
On 0
Try this link:
http://perl.apache.org/docs/2.0/user/intro/start_fast.html
For handling POST data you will likely want to install libapreq2,
which is basically the equivalent of CGI:
http://search.cpan.org/dist/libapreq2/
use Apache2::Request;
$req = Apache2::Request->new($r);
@foo = $r
yes thank you, but I am not using threads!
my dev server is
already kind of low on memory all the time.. but I will save this for
future reference, thanks!
On 2012-07-25 15:16, Daniel Boerner wrote:
> Responding to Susan (about not a static build with large file
support, thread support...)
Responding to Susan (about not a static build with large file support,
thread support...) here my
perl5 -V:
Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.32-5-amd64, archname=x86_64-linux-thread-multi
uname='linux oak 2.6.32-5
Ok. I finally got it to glue together with apache 2.2.22, perl
5.14.2, and mod_perl 2.0.7. The perl can probably be upgraded to newest.
However, mod_perl 2.0.7 will NOT do a static build (as daniel states
below, tho that looks real good otherwise) with large file support
enabled and no perl th
Daniel Boerner wrote:
Hi Fred, Hi Todd
I just subscribed to this list and still don't know how to link my message
to your thread from July 10th. Sorry.
I just want to show you my workaround of the same problem: "Install error
with Makefile.PL - uninitialized value at TestRun.pm"
Here my proceedi
On Sunday, 23 October 2011 00:12:13 Marco Walther wrote:
> As I said above, I checked for the Apache version, but a check for
> APR version would probably be better.
If you think there is a problem in modperl and you resolved it could you
please provide a patch against trunk? Chances that it wou
On 10/22/2011 11:08 AM, Niko Tyni wrote:
On Wed, Sep 28, 2011 at 02:22:49PM -0700, Marco Walther wrote:
OK, I think I found one problem. The following two defines don't
make it from the Perl make to the CCFLAGS for the mod_perl:-(
`-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' (They are automatic
On Wed, Sep 28, 2011 at 02:22:49PM -0700, Marco Walther wrote:
> OK, I think I found one problem. The following two defines don't
> make it from the Perl make to the CCFLAGS for the mod_perl:-(
> `-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' (They are automatically
> added by the Configure for perl
On Fri, Jul 15, 2011 at 1:54 PM, ChristoDeluxe wrote:
> This is the case that I'm seeing (Apache/2.2.19 (FreeBSD 8.0) mod_perl/2.0.5
> Perl/v5.8.9) where for every time I run apachectl restart, it leaks a few MB
> of RAM into the parent process and thus into all the children too. The size
> of t
On Fri, Jul 15, 2011 at 4:54 PM, ChristoDeluxe wrote:
> Looking in the archives, I see people (mostly back a few years) saying that
> people should not use "apachectl restart" or "apachectl graceful" (or
> sending the HUP signal) to restart Apache since it leaks memory.
That was the case in the p
On Wed, Jan 27, 2010 at 8:22 AM, Tosh Cooey wrote:
> In case anyone else is ever in the same situation I would like to tell them
> that mod_perl(1|2) + fork = bad idea, and don't even THINK about throwing
> DBI into the mix.
I don't want people to think this doesn't work. It does work, and has
b
Just to tie this thread up...
In case anyone else is ever in the same situation I would like to tell
them that mod_perl(1|2) + fork = bad idea, and don't even THINK about
throwing DBI into the mix.
For me in the future, if I have a VERY long task I will externalize it,
and if I have brief bu
On a FYI level the following works:
#!/usr/bin/perl
use strict;
use Apache2::Const();# defines OK
use Apache2::Log();# defines warn
use Apache2::RequestUtil();# defines push_handlers
my $r = shift;
$r->push_handlers(PerlCleanupHandler => \&cleanup);
print "Content-type: t
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
Sorry, I couldn't figure out what at(1) meant (or maybe ap(1) which you
say below) is that an abbreviation for something?
And Perrin saying "cleanup handler" is right up there with "prostate
exam" in my list of things to get into, both scare me!
Of course at some point a man needs to do both.
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
Ok, then maybe I need to supply some code here to try and get clarification:
mailfile.pl
###
use strict;
...
use POSIX;
#gather needed modules and objects
my $fileOBJ = new MyOBJS::FILE($in->param('id'));
my $clientOBJ = new ...
my $userOBJ = new ...
# All OBJjects have a {DBH} property
On Mon, Jan 25, 2010 at 3:48 PM, Tosh Cooey wrote:
> Thanks Perrin, the forking, my child got a PID of 30033 and then afterwards
> when I checked the processes (ps) for 30033 I see:
>
> [apache2]
>
> Is that what's supposed to happen?
After you call exit? No. It should be gone. That's a zombi
Perrin Harkins wrote:
On Mon, Jan 25, 2010 at 2:41 PM, Tosh Cooey wrote:
Just to follow up on this before anyone spends any time caring about it, the
seg faults could also be because one of the zombie apache2 processes I've
spawned like a Gremlin is answering the request and well...
I don't t
On Mon, Jan 25, 2010 at 2:41 PM, Tosh Cooey wrote:
> Just to follow up on this before anyone spends any time caring about it, the
> seg faults could also be because one of the zombie apache2 processes I've
> spawned like a Gremlin is answering the request and well...
I don't think so. That's not
Just to follow up on this before anyone spends any time caring about it,
the seg faults could also be because one of the zombie apache2 processes
I've spawned like a Gremlin is answering the request and well...
So, if I've done the fork properly and pretend I have apache PIDs 1..10
running, an
On 01/25/2010 02:12 PM, Tosh Cooey wrote:
Just to make things stranger, after I make a fork and things don't
happen the way I expect them, subsequent calls to other programs running
under mod_perl are generating Segmentation Faults. This could be due to
the fact that the server is running in Eur
I wish I could do SQL before the fork, but I need to update tables with
results in the forks.
Just to make things stranger, after I make a fork and things don't
happen the way I expect them, subsequent calls to other programs running
under mod_perl are generating Segmentation Faults. This cou
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
Sorry, I forgot to mention I checked InactiveDestroy as well, but since
my parent sends a 302 redirect to the browser right away and nothing
else is done in the parent I don't think that's the culprit.
Thanks for reminding me!
Tosh
Dami Laurent (PJ) wrote:
-Message d'origine-
De
>-Message d'origine-
>De : Tosh Cooey [mailto:t...@1200group.com]
>Envoyé : lundi, 25. janvier 2010 17:08
>À : modperl@perl.apache.org
>Objet : mod_perl2 + fork + DBI = Chaos
>
>My application-from-hell is doing odd things probably related to the
>above storms and culminating in a perf
Hey there,
thanks for the information - i've read that already. I suggest to fix
documentation on:
http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_
There is an example with PerlInterpStart in an scope!
regards,
Philip
macke...@animalhead.com wrote:
On page
http://perl.ap
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
On Tue, Aug 18, 2009 at 4:54 PM, wrote:
> During the mod_perl2 startup this feature works fine at first but mod_perl2
> always does a restart and during the second restart STDERR is being
> redirected to the log files and STDIN is ignored.
I suggest stashing the data somewhere and picking it up d
On Tue 25 Aug 2009, ama...@solutionsforprogress.com wrote:
> Unfortunately using restart_count does not address my issue.
>
> In the http.conf I have the following:
> ...
> PerlConfigRequire conf/startup.pl
> ...
>
> My test startup.pl has this:
>
> our $INPUT;
> print STDERR "Input:";
Malloy - thanks for responding.
Unfortunately using restart_count does not address my issue.
In the http.conf I have the following:
...
PerlConfigRequire conf/startup.pl
...
My test startup.pl has this:
our $INPUT;
print STDERR "Input:";
$INPUT = ;
print STDERR "you entered
On Fri, Feb 13, 2009 at 1:22 PM, Mark Hedges wrote:
> Connection pooling is a cool idea but I don't know who's
> made it work.
I gave a couple of options earlier in this thread.
- Perrin
You'd probably want to use Apache::DBI in that case.
I got the impression that you were maybe running under a
threaded model with many children serving static content but
sometimes opening DBI connections.
Connection pooling is a cool idea but I don't know who's
made it work. For example, `man
I realize that this response is months late, but this thread is only
now coming to my attention due to another recent response. Still, I
think you may have been trying to solve the wrong problem. Perhaps I'm
missing a detail or two here, but you are running mod_perl. Perl
processes live on beyond t
Timothy Partee wrote:
>
>
> Quick question for the list. I've been scouring Google looking for
> information on Connection Pooling to MySQL 5.0 in mod_perl2 on Apache2
> using mod_dbd or similar, and while I can find docs for configuring
> mod_dbd in Apache2, and am quite familiar with
Second question about childs. I not fully understand, how childs work.
In a little bit more details :
When you start Apache, one single process is started.
That's what you can call the "main" Apache.
It reads and checks the configuration, and bombs out if anything is wrong.
If nothing is wron
It's quite simple really. You're running 2 instances of the script. To
retain the value of $counter, read up the mod_perl documentation for tips.
CthuMP wrote:
I have follow simple script:
!#/usr/bin/perl
print "Content-Type: text/html\n\n";
print "Counter: " . (++$counter) . "\n";
print tim
CthuMP wrote:
CthuMP wrote:
Starting that script twice in two different browser windows gives me same
results. In second window I start script after some period (about 10
seconds) after first script started. First and Second scripts ends at the
same time.
I have solved that problem.
If someo
CthuMP wrote:
I have follow simple script:
!#/usr/bin/perl
print "Content-Type: text/html\n\n";
print "Counter: " . (++$counter) . "\n";
print time(), "\n";
sleep(20);
print time(), "\n";
Starting that script twice in two different browser windows gives me same
results. In second window I st
CthuMP wrote:
>
> Starting that script twice in two different browser windows gives me same
> results. In second window I start script after some period (about 10
> seconds) after first script started. First and Second scripts ends at the
> same time.
>
I have solved that problem.
If someone i
> On Thu, Sep 4, 2008 at 6:58 PM, Berg, Eric
> > When I say that Test::Builder/Test::More/etc. are tightly
> > coupled, I'm talking really entwined. In some cases, we have
created a
> > class with a bunch of test-related methods that look through the
symbol
> > table and find methods that =~ m
On Thu, Sep 4, 2008 at 6:58 PM, Berg, Eric <[EMAIL PROTECTED]> wrote:
> When I say that Test::Builder/Test::More/etc. are tightly coupled, I'm
> talking really entwined. In some cases, we have created a class with a
> bunch of test-related methods that look through the symbol table and
> find meth
ginal Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Perrin Harkins
> Sent: Thursday, September 04, 2008 6:36 PM
> To: Berg, Eric
> Cc: modperl@perl.apache.org
> Subject: Re: mod_perl2 + ModPerl::RegistryPrefork +
> Test::Builder = segfault
&
On Thu, Sep 4, 2008 at 6:09 PM, Berg, Eric <[EMAIL PROTECTED]> wrote:
> Many of our core modules contain test methods that are executed during
> our CVS checkin process as regression tests, so we'd have to completely
> redo our regression testing architecture to decouple Test::Builder from
> our co
Perrin Harkins wrote:
In my opinion, yes. You'd have to write your own DBI, or a DBD driver
that talks to mod_dbd. It would not be easy.
Yeah were definitely missing the that APR::* XS glue for this, but its
something I'm incredibly interested in. I just lack the time atm
I think some ot
On Wed, Aug 27, 2008 at 5:15 AM, Timothy Partee <[EMAIL PROTECTED]> wrote:
> Am I completely on the wrong track?
In my opinion, yes. You'd have to write your own DBI, or a DBD driver
that talks to mod_dbd. It would not be easy.
> Is there
> another more simple way to implement MySQL DBI connect
e that these solutions will work for a threaded MPM either.
Eric
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Perrin Harkins
> Sent: Wednesday, August 20, 2008 12:47 PM
> To: Niels Larsen
> Cc: modperl@perl.apache.org
> Subject: Re
On Wed, Aug 20, 2008 at 11:26 AM, Niels Larsen <[EMAIL PROTECTED]> wrote:
> I can put
> the command line to run in backticks and do print [EMAIL PROTECTED], and
> that too works, but would like to use system, Proc::SafeExec, etc.
To fork and capture output without backticks, you have to do somethi
The system call forks a process and that process inherits the STDOUT
from perl. So since your perl is the persistent interpreter in Apache,
it would make sense that that's where most of the STDOUT messages will go.
I'm not sure if there is a way to intercept the STDOUT of the forked
process in
On Sat, Aug 9, 2008 at 8:20 PM, Dondi M. Stroma <[EMAIL PROTECTED]> wrote:
> Thanks, but I do not see how Apache2::ServerUtil::restarting() does the same
> thing. The $Apache::Server::Starting and $Apache::Server::ReStarting are,
> respectively, 1 and 0 during start, 0 and 1 during restart, and 0 a
Perrin Harkins wrote:
On Sat, Aug 9, 2008 at 5:19 PM, Dondi M. Stroma <[EMAIL PROTECTED]>
wrote:
What are the mod_perl 2 equivalents of $Apache::Server::Starting and
$Apache::Server::ReStarting?
http://perl.apache.org/docs/2.0/user/porting/compat.html#C__Apache__Server__Starting__and_C__Apache
On Sat, Aug 9, 2008 at 5:19 PM, Dondi M. Stroma <[EMAIL PROTECTED]> wrote:
> What are the mod_perl 2 equivalents of $Apache::Server::Starting and
> $Apache::Server::ReStarting?
http://perl.apache.org/docs/2.0/user/porting/compat.html#C__Apache__Server__Starting__and_C__Apache__Server__ReStarting_
Michael,
Thank you very much for this valuable advice.
Cheers.
Brian
-Original Message-
From: Michael Peters [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 3:05 PM
To: Brian Gaber
Cc: Jim Brandt; modperl@perl.apache.org
Subject: Re: mod_perl2 newbie DBI
Hi Brian,
"Brian Gaber" <[EMAIL PROTECTED]> wrote...
my $region = param('region'); # ...
my $sth = $dbh->prepare(
"SELECT * FROM region_props WHERE region = '$region'"
);
Works fine a few times and then:
DBD::mysql::st execute failed: You have an error in your SQL syntax;
check the manual t
2008/6/12 Michael Peters <[EMAIL PROTECTED]>:
> Brian Gaber wrote:
>> # Determine MySQL locks table name
>> my $sth = $dbh->prepare("SELECT * FROM region_props WHERE region =
>> '$region'");
>> $sth->execute();
> Btw, this is *really* bad security wise. $region is coming straight from the
> brows
Brian Gaber wrote:
> Is there anything useful in the Apache error log? Works fine a few
> times and then
> DBD::mysql::st execute failed: You have an error in your SQL syntax;
> check the manual that corresponds to your MySQL server version for the
> right syntax to use near '' at line 1 at
> /us
eeing this in your development environment? Yes
Can you reproduce the problem reliably? Yes
Thanks.
-Original Message-
From: Jim Brandt [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 12, 2008 2:36 PM
To: Michael Peters
Cc: Brian Gaber; modperl@perl.apache.org
Subject: Re: mod_perl2
Michael Peters wrote:
Brian Gaber wrote:
I have modified scripts to work in mod_perl2, but they don't
work reliably. Sometimes they work and then they stop working and then
I have to stop and start Apache to get it working again.
"stop working" is really too generic a description
Brian Gaber wrote:
> I have modified scripts to work in mod_perl2, but they don't
> work reliably. Sometimes they work and then they stop working and then
> I have to stop and start Apache to get it working again.
"stop working" is really too generic a description for anyone to really
d
On Mon, May 26, 2008 at 10:48 PM, mome <[EMAIL PROTECTED]> wrote:
> When passing Apache2::Request object to CGI::Session->new() as the following
>
> sub authen_handler{
> my $self = shift;
> my $req = Apache2::Request->new($r);
> my $session=CGI::Session->new(undef,$req,{Directory=>
> $TMP_SESSIO
On Tue, May 27, 2008 at 4:08 AM, mome <[EMAIL PROTECTED]> wrote:
> What do you means by " Either get the session ID
> yourself and pass it to CGI::Session->new()"?
> Does it mean I can simply create the session ID from any way eventhough
> hardcode e.g. 23asfsdfw22456 and pass it?
Your session ID
Boysenberry Payne wrote:
>> But what if the module Module::Name "use" or "require" other modules?
>> Are they also loaded before the server forks, or I need to load them
>> with "PerlModule ..." in httpd.conf?
>
> Good question. I think it might depend on how the requires/uses are scoped
> in th
On Nov 8, 2007, at 1:07 PM, Octavian Rasnita wrote:
From: "Boysenberry Payne" <[EMAIL PROTECTED]>
What should I do if I want to load the classes after the server
forks?
There are many phases after the fork, the most commonly used is the
PerlResponseHandler phase
Do I understand correctly
From: "Boysenberry Payne" <[EMAIL PROTECTED]>
What should I do if I want to load the classes after the server forks?
There are many phases after the fork, the most commonly used is the
PerlResponseHandler phase
Do I understand correctly that even the modules specified in httpd.conf with
Perl
t;
Cc: "modperl List"
Sent: Thursday, November 08, 2007 1:04 AM
Subject: Re: mod_perl2 and Apache::SharedMem
On Nov 7, 2007 5:50 PM, Boysenberry Payne
<[EMAIL PROTECTED]> wrote:
If I created some of my static hashes and objects during the
PerlPostConfigHandler phase
and added t
Octavian Rasnita wrote:
Hi,
Can you please tell me when the server forks?
http://perl.apache.org/docs/2.0/user/handlers/server.html
What should I do to load some classes before the server forks?
http://perl.apache.org/docs/2.0/user/handlers/server.html#Startup_File
> What should I do if I
AIL PROTECTED]>
To: "Boysenberry Payne" <[EMAIL PROTECTED]>
Cc: "modperl List"
Sent: Thursday, November 08, 2007 1:04 AM
Subject: Re: mod_perl2 and Apache::SharedMem
On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]>
wrote:
If I created
On Nov 7, 2007, at 5:05 PM, Michael Peters wrote:
Boysenberry Payne wrote:
If I created some of my static hashes and objects during the
PerlPostConfigHandler phase
and added them to either the configuration or log pools would that
help
me keep
some of my memory shared, assuming I could get
On Nov 7, 2007, at 5:04 PM, Perrin Harkins wrote:
On Nov 7, 2007 5:50 PM, Boysenberry Payne
<[EMAIL PROTECTED]> wrote:
If I created some of my static hashes and objects during the
PerlPostConfigHandler phase
and added them to either the configuration or log pools
You're missing the big pict
Boysenberry Payne wrote:
> If I created some of my static hashes and objects during the
> PerlPostConfigHandler phase
> and added them to either the configuration or log pools would that help
> me keep
> some of my memory shared, assuming I could get at either pool during the
> PerlResponseHandler?
On Nov 7, 2007 5:50 PM, Boysenberry Payne <[EMAIL PROTECTED]> wrote:
> If I created some of my static hashes and objects during the
> PerlPostConfigHandler phase
> and added them to either the configuration or log pools
You're missing the big picture. Adding perl objects to a shared
memory pool d
If I created some of my static hashes and objects during the
PerlPostConfigHandler phase
and added them to either the configuration or log pools would that
help me keep
some of my memory shared, assuming I could get at either pool during
the PerlResponseHandler?
Am I confusing lifetime scop
Other than for callbacks on destruction of memory pools what is
APR::Pool useful for?
-bop
On Nov 7, 2007, at 1:56 PM, Perrin Harkins wrote:
Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow.
Does memcached or Cache::FastMap work with apache's shared memory
pool?
No, I
Don't use Apache::SharedMem. It uses IPC::ShareLite, which is slow.
> Does memcached or Cache::FastMap work with apache's shared memory pool?
No, I don't think anyone has ever gotten that to work.
> In this situation if its possible (which it should be for my own
> modules) I would like
> the p
Am I looking for APR::Pool?
-bop
On Nov 7, 2007, at 12:41 PM, Boysenberry Payne wrote:
On Nov 7, 2007, at 11:59 AM, Michael Peters wrote:
Boysenberry Payne wrote:
Is Apache::SharedMem working with mod_perl2 the "same" way it did
with
mod_perl1?
Don't know, haven't used it. It hasn't
On Nov 7, 2007, at 11:59 AM, Michael Peters wrote:
Boysenberry Payne wrote:
Is Apache::SharedMem working with mod_perl2 the "same" way it did
with
mod_perl1?
Don't know, haven't used it. It hasn't been updated since 2001, so
either it's
perfect and hasn't needed any changes or it's not
Boysenberry Payne wrote:
> Is Apache::SharedMem working with mod_perl2 the "same" way it did with
> mod_perl1?
Don't know, haven't used it. It hasn't been updated since 2001, so either it's
perfect and hasn't needed any changes or it's not being maintained.
> Is Apache::SharedMem the "preferred"
I could never install Apache2::Request successfully.
I'm running RH Linux as4,2.6.9 kernel.
2007/8/23, Manoj Bist <[EMAIL PROTECTED]>:
> Hi Jon,
>
> Which OS platform are you working on?
>
> On platforms like ubuntu linux you can get precompile packages for all
> these modules.
> You just need to
Hi Jon,
Which OS platform are you working on?
On platforms like ubuntu linux you can get precompile packages for all
these modules.
You just need to do: sudo apt-get install .
An option like this may already be available on your development platform.
-Manoj.
On 8/22/07, jónJósef Bjarnason <[EM
Thanks.
I had to compile Perl again, then mod_perl2.
mod_perl works now, nothing else thoguh,
Problems compiling DBI, DBD..etc. (MySql on a different machine)
I´m getting therevery slowly.
Thank you all for your time and help.
Regards
Jon
Þann 8/22/2007, skrifaði "Manoj Bist" <[EMAIL
In general to create a shared object the constituent object files
should be PICable. Look for Makefile(s) which compile the individual
source files. It would have a variable like 'CFLAGS'. Adding '-fPIC'
to it should take care of it.
On 8/21/07, jónJósef Bjarnason <[EMAIL PROTECTED]> wrote:
> Wh
On Sun, Jul 29, 2007 at 03:42:19PM -0400, Jonathan Vanasco wrote:
> any reason why you're using sdbm ? you might be better off with bdb,
> since it has that shared memory cache feature.
My initial experiements worked with SDBM, so I ran with it. :) I
suppose I could re-rest with DB_File, if t
On Sun, Jul 29, 2007 at 01:49:56PM -0700, Perrin Harkins wrote:
> The dbm implementation you're using will not always write everything
> to disk until you untie it. To make this transparent, you can use
> MLDBM::Sync, which unties and reties on every request. This is
> necessary for read/write sh
On 7/29/07, Brian Reichert <[EMAIL PROTECTED]> wrote:
> The symptom I see that after a 'set', subsequent 'gets' show me
> various results; sometimes the data comes back set, sometimes not.
The dbm implementation you're using will not always write everything
to disk until you untie it. To make thi
On Jul 29, 2007, at 12:15 PM, Brian Reichert wrote:
But, that contradicts the behavior I see with my command-line tool
demo:
distinct processes with distinct tied hashes can sucessfully share
data
through the sdbm. :/
any reason why you're using sdbm ? you might be better off with bdb,
1 - 100 of 274 matches
Mail list logo