How to setup httpd.conf ? when i using static (non-DSO) mod_perl.
DSO mod_perl httpd.conf ===
LoadModule perl_module modules/mod_perl.so
PerlRequire "/usr/local/perlmods/startfile.pl"
Will i need recomplie apache when i modify my (perl)code , when using
non-DSO mod_perl?
Foo Ji-Haw wrote:
Just went to your company web site and read that you got the White Camel
award. Congrats, both on the award and your new career!
Thanks for the kind words, Foo!
We're talking to the Director of Development here guys... :)
Hehe, don't let titles mislead you :)
BTW, we are
Hi modperlmailinglist,
I'm new to mod_perl and have two problems I couldn't solve:
1st: I can't get my error messages being displayed in the browser. use
CGI::Carp qw/fatalsToBrowser/; doesn't work anymore. I googled for but
didn't find anything real helpful. Is there a way to write errors to
Just went to your company web site and read that you got the White Camel
award. Congrats, both on the award and your new career!
We're talking to the Director of Development here guys... :)
- Original Message -
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: "JT Smith" <[EMAIL PROTECTED]>
Cc
I just asked this question elsewhere, and got a good working response. Below
is my trivialised code:
my $BytesRead = $sock->sysread($buffer,1024);
if (!defined($BytesRead))
{
print "WARNING: Connection lost!\n";
exit;
}
Because sysread is blocking (I do
I tried that and it didn't work. I have this code:
my $len = $sock->recv($buff, $want);
warn "got the message\n";
sleep 10;
warn "sending the response\n";
my $wlen = eval { $sock->send( "I heard $buff\n" ) };
if ($@) {
warn "They hung up!\n";
}
else {
On Mon, 19 Dec 2005, Ivan Heffner wrote:
Any ideas or pointers on how to do this. Even a redirect to some
(helpful) docs (Not the "Possible values: " docs) would be
helpful.
t/protocol/TestProtocol/echo_timeout.pm
"
I'm trying to tweak a custom Apache Connection handler. The short
description of what I want to do is this:
I receive a connection from an application. I read the message which
tells me what work I should be doing. I go off and do the work. In
the time that I do the work, the application could
Hello,
On Monday 19 December 2005 04:18, JT Smith wrote:
> Apache is the ultimate event handler. It's listening for socket events. Why
> couldn't we change it just a bit to listen to timer events and thusly kick
> off an execution once per minute to check a cron tab. The reading of cron
> tabs is
On Mon, 19 Dec 2005, Perrin Harkins wrote:
Usually circular references like this are not a problem in Perl. The
only issue I know of is when you try to use imported subs or variables
at compile time.
Generally, this is true. Do beware though of code that may lean on perl's
grammar a bit much:
On Mon, 2005-12-19 at 15:19 -0500, Philip M. Gollucci wrote:
> > On Mon, 2005-12-19 at 15:11 -0500, Philip M. Gollucci wrote:
> >> I've got some code that gets away with a lot of circular references
> >> because of the "magic load order" in the startup.pl file(s).
> >
> > Usually circular reference
On Mon, 2005-12-19 at 15:11 -0500, Philip M. Gollucci wrote:
I've got some code that gets away with a lot of circular references
because of the "magic load order" in the startup.pl file(s).
Usually circular references like this are not a problem in Perl. The
only issue I know of is when you tr
On Mon, 19 Dec 2005, Perrin Harkins wrote:
On Mon, 2005-12-19 at 13:43 -0600, Chase Venters wrote:
What was happening? The application had been taking
messages into the queue, promising the call generator to handle them. Thus
the queue kept growing, and growing, and growing...
That is what a
On Mon, 2005-12-19 at 15:11 -0500, Philip M. Gollucci wrote:
> I've got some code that gets away with a lot of circular references
> because of the "magic load order" in the startup.pl file(s).
Usually circular references like this are not a problem in Perl. The
only issue I know of is when you
I've got some code that gets away with a lot of circular references
because of the "magic load order" in the startup.pl file(s).
Are they are CPAN modules i.e. Module::ScanDeps that might be able to
programatically identify thse ?
Its not always A uses B and B uses A it might be many levels.
On Mon, 2005-12-19 at 13:43 -0600, Chase Venters wrote:
> What was happening? The application had been taking
> messages into the queue, promising the call generator to handle them. Thus
> the queue kept growing, and growing, and growing...
That is what a queue is supposed to do when the demand
On Mon, 19 Dec 2005, Perrin Harkins wrote:
processes free for accepting jobs (as opposed to processing jobs). If
there are not, it adds the job to the queue and goes back to listening
for requests. If there are, it processes the job. This ensures that
processing jobs does not starve the abilit
JT Smith wrote:
Yup, I've actually already done it that way with both
Parallel::ForkManager in one instance and Proc::Queue as an alternative.
I added in event handling with both Event and Event::Lib as seperate
trials. All those implementations were relatively easy to do. But the
question bec
On Sun, 2005-12-18 at 23:48 -0600, JT Smith wrote:
> I added in event handling with both Event
> and Event::Lib as seperate trials.
I just used a short sleep with Time::HiRes between polling the database
for new jobs.
> If everything else is running in Apache, why start a
> seperate service to
Thanks, that fixed it. I knew it was something very simple, and I can stop
beating my head against the wall.
For the record, my Makefile.PL call is as follows:
perl Makefile.PL MP_USE_STATIC=1
MP_AP_PREFIX=/home/albert/download/httpd-2.0.55
MP_AP_CONFIGURE="--with-mpm=worker --enable-proxy -
Please, I specifically asked not to tell me how else to do it. I want to know how, if at
all, it's possible to do it under Apache/modperl. I know I can do it 1,000,000 other
ways that I'm totally not interested in. I just want everyone to focus on what's
possible with Apache/modperl, and nothing
Quite right Tom...
I think I found the problem anyway, it appears to work fine now - see
below, I've collapsed a few function calls to make it clearer but you'll
see what silliness was going on...
I'm using method handlers and the object is preserved between requests,
like so:
package Data
Thanks, that fixed it. I knew it was something very simple, and I
can stop beating my head against the wall.
For the record, my Makefile.PL call is as follows:
perl Makefile.PL MP_USE_STATIC=1 MP_AP_PREFIX=/home/albert/download/
httpd-2.0.55 MP_AP_CONFIGURE="--with-mpm=worker --enable-proxy
A little but more code would be help to see what you are really doing ;-)
Tom
John ORourke wrote:
> Hi perlites, I'm getting my brain twisted here...
>
> [FYI: Apache 2.0.51, MP 2.0.1, Linux 2.6.5]
>
> still debugging but it *seems* like $r->pnotes is being preserved
> between requests (I'm sto
Hi perlites, I'm getting my brain twisted here...
[FYI: Apache 2.0.51, MP 2.0.1, Linux 2.6.5]
still debugging but it *seems* like $r->pnotes is being preserved
between requests (I'm storing a hash ref in it like this:
$r->pnotes('cookies',$cookie_hash)
Are there any circumstances where pnote
25 matches
Mail list logo