s to be true, I am pretty sure the FCGI servers can also
be modified to manage memory as tightly as Apache2::SizeLimit.
- Mark
great for weird, special cases, like supporting some legacy, 3rd
party code, but I don’t believe it’s the best option for the common case.
- Mark
e to share a Perl based webserver which can be guaranteed to be
> comparable to apache in terms of reliability and stability ?
>
> On Tue, Aug 4, 2020 at 3:48 PM Mark Blackman <mailto:m...@blackmans.org>> wrote:
>
>
>> On 4 Aug 2020, at 21:41, Mithun Bhattacharya &
> On 4 Aug 2020, at 21:41, Mithun Bhattacharya wrote:
>
> I am genuinely curious what are these other "well known" means ?
>
> On Tue, Aug 4, 2020 at 3:37 PM Mark Blackman <mailto:m...@blackmans.org>> wrote:
>
>
> > On 4 Aug 2020, at 17:58, M
> On 4 Aug 2020, at 17:58, Mithun Bhattacharya wrote:
>
> mod_perl does have value because it does a more efficient utilization of
> resources - this is important when fast response time and scalability is
> important. The complexity is a known problem but it is not a mystery box
> either -
rl adds less value than
it used to, though. You can get most of the benefits of mod_perl without the
complexity. It’s only if you have to do really really unusual things in the
request cycle where mod_perl helps a lot.
- Mark
> On 28 Jan 2019, at 23:00, Paul B. Henson wrote:
>
> On 1/28/2019 1:53 PM, Mark Blackman wrote:
>> https://perldoc.perl.org/threads.html#WARNING Threads are discouraged in
>> Perl these days
>
> Yes, that is indeed what the documentation says; however, there is
> On 28 Jan 2019, at 21:34, Paul B. Henson wrote:
>
> On 1/28/2019 12:38 PM, Mark Blackman wrote:
> >
>> Given that Perl is single-threaded by design and history and has no reliable
>> support for threading, I think that mod_perl and direct http/2
>
> Pe
I think Perl is fine, but naive Perl (or anything else) doesn’t scale. Are you
actually maxing out your CPU (re-examine your code) or are your mod_perl
instances all hanging around waiting for a database to return (re-examine your
queries/indices).
- Mark
> On 28 Jan 2019, at 21:27, J
time for more cores or optimising your Perl?
> On 28 Jan 2019, at 21:10, John Dunlap wrote:
>
> I'm pretty sure that they are but, unfortunately, we make a lot of dynamic
> requests.
>
> On Mon, Jan 28, 2019 at 9:08 PM Mark Blackman <mailto:m...@blackmans.org>&g
exonetric.com/>) and would love to sell you some hosting! On the
other hand, if your Perl just needs some TLC, then plenty of contractors can
help find the hotspots and optimise for you.
- Mark
cause
> we're already pulling all of our static content directly from Amazon
> Cloudfront. The vast majority of our requests are for dynamic content.
>
> On Mon, Jan 28, 2019 at 8:38 PM Mark Blackman <mailto:m...@blackmans.org>> wrote:
>
> Given that Perl is si
ver front-end proxy makes sense handling
HTTP/2 requests for both static and dynamic content requests. This was standard
advice 20 years ago as far as I recall and is even more prudent now.
- Mark
-- the fewest number of function
calls between the request and the response.
Mark
-Original Message-
From: Vincent Veyron [mailto:vv.li...@wanadoo.fr]
Sent: Tuesday, October 07, 2014 2:32 PM
On Tue, 7 Oct 2014 17:42:56 +
Mark Hedges wrote:
>
> I have found Apache::Test extremely useful for testing web applications.
> Don't let anyone tell you
.
You can also write t/TEST.PL, which gets added to the generated t/TEST script.
It has to run:
use Apache::TestRunPerl ();
Apache::TestRunPerl->new->run(@ARGV);
... at the end, since this does not seem to get added to the generated t/TEST
script when t/TEST.PL is used.
HTH.
Mark
ath args after the requested URI?
It looks like embperl did it, but I didn't look too far into it.
HTH.
Mark Hedges
d you will only use the amount of memory once for all processes.
Using package vars to cache data is nice for small amounts that
don't change in size. If you go too far down that road you run
into the problem you described... it's no longer manageable.
HTH.
Mark Hedges
Thanks I guess your answer will work for me if I have only static IPs but what
I have suggested is an example, my DB or DNS zone is changing dynamically, can
mod_perl deal with them as a DB?
.
but what if I don't want to authenticate users (BECAUSE I have already
authenticate them using freeRADIUS and IEE802.1x) , I want only to authorize
them, you would ask me how can we get the username.
I have usernames with there IPs in mysql DB like this:
user IP
Mark 192.168.1.10
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.
Hey nevermind, setting env vars works. I guess I must have typed that wrong
before when I tried that. Thank you.
Mark
-Original Message-
From: Mark Hedges
Sent: Friday, July 25, 2014 3:46 PM
To: modperl@perl.apache.org
Cc: Mark Hedges
Subject: pass extra args to a test in Apache
have that show up in $ENV in t/foobar.t.
The only way I have found so far is to put files somewhere for the script to
read. That seems a little kludgy.
Any tips? Thank you.
Mark
s what I should do? I am not sure how to use gdb.
Thanks.
Mark
Another library providing the same function in working order is not a reason to
not fix the function in Apache2::URI.
s/b Apache2::URI::unescape_url()... [...]
Mark
-Original Message-
From: Vincent Veyron [mailto:vv.li...@wanadoo.fr]
Sent: Saturday, June 28, 2014 7:02 AM
To: Mark
The intent was to report that Apache2::URI::unescape does not seem to work
correctly.
Mark
-Original Message-
From: David Booth [mailto:da...@dbooth.org]
Sent: Thursday, June 26, 2014 8:43 PM
To: modperl@perl.apache.org
Subject: Re: Apache2::URI::unescape_url bug?
On 06/26/2014 08:42
1913/UK1\0UK1
??
-Mark
ne by itself is certainly less computation.
However I'm not sure about the last one. That is a cool idea. We'd have to
benchmark it. :-)
Also is '&&' faster than 'and'?
Mark
From: sergiy.borod...@gmail.com [mailto:sergiy.borod...@gmail.com] On Behalf
D'oh sorry bad value for POST_MAX, please ignore. -Mark
-Original Message-
From: Mark Hedges
Sent: Monday, June 23, 2014 4:02 PM
To: apreq-...@httpd.apache.org; mod_perl list
Cc: Mark Hedges
Subject: RE: APREQ_ERROR_MISMATCH error, I think
No one seems home on the apreq-dev list s
ssage
"Conflicting information," which seems to be related to the
APREQ_ERROR_MISMATCH constant, but I don't know how to debug this.
When I comment out creating the Apache2::Request object from $r, my dummy test
handler runs fine.
How would I try to debug this?
Mark
-Origin
I was thinking about this, I think I can do something like:
my $loc = $r->location;
$loc =~ s{/$}{};
my ($loc_match, $rest_of_path) = $r->uri =~ m{^(\Q$loc\E.*?/)(.*?)$}mxs;
I will try it out when I get a chance.
Mark
-Original Message-
From: Mark Hedges
Sent: Monday, June 23, 2
5805. HTH. -Mark
---
/ntfhome/local/lib/perl5/site_perl/5.20.0/x86_64-linux-thread-multi-ld/Apache/TestSSLCA.pm.orig2014-06-23
14:49:44.712628000 -0700
+++
/ntfhome/local/lib/perl5/site_perl/5.20.0/x86_64-linux-thread-multi-ld/Apache/TestSSLCA.pm
It seems like mpm_is_threaded should answer 1 for the event MPM, but it answers
0, and the test fails. The patch works around this by detecting whether it is
actually prefork or not, but there may be a deeper problem here. HTH. -Mark
2014-06-23 14:02:45 Mon $ svn diff ModPerl-Registry/t
2::Reload->unregister_module($package);
ModPerl::Util::unload_package($package);
$pass = 0;
Also reported on Apache::Reload at rt.cpan.org.
Thanks.
Mark
This worked in trunk. Thanks. I guess I spun my wheels for a couple hours.
Would it be a good idea to roll out 2.0.9 as a bugfix, and make httpd24 2.1.0?
2.0.10?
Mark
-Original Message-
From: Mark Hedges
Sent: Monday, June 23, 2014 12:22 AM
To: modperl@perl.apache.org
Cc: Mark
om the config block instead of the part of the path that
matched it. If that is a weird pattern, then it is not found in the literal
URI.
Is there a way to get at what part of the URI matched the or
directive?
Thanks.
Mark
I'm the one who didn't get it, apparently. -Mark
$ ack 'world domination series'
ack: perl/perl-5.20.0/t/pleaseletthisfilenotexist.pag: cannot open file for
reading
ack: perl/perl-5.20.0/t/pleaseletthisfilenotexist.dir: cannot open file for
reading
perl/mod_perl-2.0.8/t/c
t/api/err_headers_out.t was recently changed to accommodate changes in
HTTP::Headers 6.0, but the change did not make it forward-compatible for
further versions of HTTP::Headers. The patch for the test script is below at
the end. Thank you. HTH. -Mark
s...@tst1.ntf.cftdev1 /ntfhome/local
*lol* ... `force install App::Ack` ... silly people :-)
From: Mark Hedges
Sent: Sunday, June 22, 2014 11:10 PM
To: modperl@perl.apache.org
Cc: Mark Hedges
Subject: what is "world domination series"?
Apache/2.2.27 (Unix) world domination series/2.0 mod_perl/2.0.8 Perl/v5.20.0
Server at
This appears to be a bug in a test library in the released current version
mod_perl 2.0.8. $r->args can return undef if there is no ? in the url to
specify a query string, apparently. Patch is at the bottom. HTH. -Mark
s...@tst1.ntf.cftdev1 /ntfhome/local/src/perl/mod_perl-2.0.8
2014-06
Apache/2.2.27 (Unix) world domination series/2.0 mod_perl/2.0.8 Perl/v5.20.0
Server at localhost Port 8529
... rather ominous ...
Thanks.
Mark
1. Problem Description:
Generated test t/compat/conn_rec.t fails with incorrect test count.
It wasn't there to begin with and I didn't know what bootstrapped it
so the error log first shows the output of the other failed test that I
just reported, then it goes on to show this test output.
1. Problem Description:
t/hooks/authen_digest.t fails
s...@nta1.ntf.cftdev1 /ntfhome/local/src/mod_perl2_svn/mod_perl
2014-06-09 18:15:28 Mon $ t/TEST -verbose t/hooks/authen_digest.t
/ntfhome/local/bin/httpd -d /ntfhome/local/src/mod_perl2_svn/mod_perl/t -f
/ntfhome/local/src/mod_perl2_svn/
BTW it timed out after Test 6 and then I hit ctl-C.
-Original Message-
From: Mark Hedges
Sent: Friday, June 06, 2014 5:50 PM
To: modperl@perl.apache.org
Cc: Mark Hedges
Subject: http24threading t/protocol/eliza.t does not exit
1. Problem Description:
This is Apache 2.4.9 using the
1. Problem Description:
This is Apache 2.4.9 using the bundled apr/apr-util. Trying to build
http24threading branch.
t/protocol/eliza.t never exits after the last statement.
I am confused by t/protocol/TestProtocol/eliza.pm. It seems like it expects a
readline interface. But I added some de
setup, where the same perl on NFS has a different absolute
path on different servers where the volume is mounted on different paths, but
then a consistent symlink is provided. Maybe I don't understand what the
userelocatableinc option is for.
Thanks.
Mark
On Nov 10, 2012, at 10:22 AM, Torsten Förtsch wrote:
> On 11/10/2012 03:43 PM, Mark Heiges wrote:
>>
>> On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote:
>>
>>> I have a name-based virtual host and want to use Socket.pm in a PerlSection:
>>>
>>>
On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote:
> I have a name-based virtual host and want to use Socket.pm in a PerlSection:
>
>
> use Socket;
>
>
> but when starting httpd I get the error,
>
> $parms->add_config() has failed: Invalid command 'INADDR_ANY
On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote:
> I have a name-based virtual host and want to use Socket.pm in a PerlSection:
>
>
> use Socket;
>
>
> but when starting httpd I get the error,
>
> $parms->add_config() has failed: Invalid command 'INADDR_ANY
I have a name-based virtual host and want to use Socket.pm in a PerlSection:
use Socket;
but when starting httpd I get the error,
$parms->add_config() has failed: Invalid command 'INADDR_ANY', perhaps
misspelled or defined by a module not included in the server configuration at
/usr/lib64/pe
h the tests run since I've set
I was wondering if anyone had any experience of anything like this before?
Mark.
P.S. In case it's important:
Ubuntu 10.4 LTS on intel
Perl 5.12.3
httpd-2.2.16
t/apache/read3.t
Failed 1/1 subtests
Test Summary Report
-
ed at Lame.pm line 26.
If I comment those subs out it checks fine, so
Apache2::Filter is loading. It doesn't help if I also do
"use Apache2::Filter ()" first. Any ideas how to make this
check okay for my build test to include it? --mark--
#file:MyAp
On Wed, 2 Feb 2011, Mark Hedges wrote:
>
> A change in Module::Build recently brought it in line with
> the behavior of ExtUtils::MakeMaker, which caused an error
> to crop up in test cases:
>
> # Error: Can't load
> '/usr/lib/perl5/site_perl/5.8.8/i386-linu
le seem
inclined to think it is a problem with mod_perl and not apreq.
Any ideas? Thanks. --mark--
-- Forwarded message --
Date: Thu, 3 Feb 2011 01:02:16 -0500
From: Michael G Schwern via RT
To: mar...@cpan.org
Subject: Re: [rt.cpan.org #65382]
https://rt.cpan.org/Ticket/Di
Request (libapreq2) but
people seem inclined to think it is a problem with mod_perl
and not apreq.
mod_perl 2.0.4 6.el5, perl 5.8.8 32.el5_5.2 CentOS
Any ideas? Thanks. --mark--
-- Forwarded message --
Date: Thu, 3 Feb 2011 01:02:16 -0500
From: Michael G Schwern via
I should have searched the source file for that "die" command myself.
Sorry for the noise; thanks for the gentle reply.
MC
On Thu, Dec 30, 2010 at 3:07 PM, Fred Moyer wrote:
> On Thu, Dec 30, 2010 at 9:50 AM, Mark Copper wrote:
>>
>> Do the the Apache2::SizeLimit m
removed, but I
don't see anything about it in the CPAN module changes file.
Thanks.
Mark Copper
urse, but is then I won't
get the error message when it *does* get set.
So my question: when "open" to a pipe does not return a process PID
and $! is not set, is there any other source of information regarding
what caused the error?
I'm pretty ignorant on this type of thing, so sorry if it's a stupid question.
Mark
$r->custom_response(Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE,"Bad
request");
}
return Apache2::Const::OK
}
That way you don't have to duplicate the logic of the check yourself,
you're just arranging for a customized response when it fails.
--
Mark J. Reed
_type("text/plain");
> $r->print ("Too Large, Bye!!");
> #Send xml delimited back to the client assuming it will not continue
> sending this request to mod_jk worker
> }
>
> return Apache2::Const::HTTP_REQUEST_ENTITY_TOO_LARGE; # Return back to client
>
--
Mark J. Reed
Thank you for the suggestions. Unfortunately, I am still not able to make
it work.
Spurred by your advice, I examined my apache2.conf config. Here it is:
PerlSwitches -I/mnt/hgfs/src/api# the path where my modules live
PerlModule StartupLog
PerlChildInitHandler StartupLog::child_init
Se
Hi, all:
I am trying to load a configuration file into a hash during my
PerlChildInitHandler and then access the values from PerlResponseHandler.
However, even though the process number is the same, it seems that variables
changed during the child_init() call revert back to their default values
> Apache2-Dispatch-0.13.tar.gz
This looks like a useful module, Fred.
Is anyone here using this as an initial dispatcher to pass things on to
CGI::Application::Dispatch?
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark StosbergPrincipal Develo
r this be solved at a toolkit level so folks don't have to keep
re-inventing solutions for this.
Have I missed a better way to handle this?
Mark
uot;/just|another|perl|hacker/"
>
> References
>
> 1. mailto:demer...@gmail.com
>2. mailto:pas.arge...@gmail.com
Looks like Bug #37027 for DBD-mysql: mysql_auto_reconnect
I struggled with this one a while back myself.
Mark
Despite what I said, this seems to be CPAN bug 37027 or, in my case,
Debian bug #520406 involving module DBD-mysql.
Mark
On Tue, Jan 12, 2010 at 12:24:17PM -0600, Mark Copper wrote:
> Hi,
>
> I have a server like this:
> Server Version: Apache/2.2.9 (Debian) mod_ssl/2.2.9 Op
mposing on list-readers time without doing
more work, but I just wonder is it isn't something really elementary
that I'm missing.
Mark
pache/mod_perl compiled against 5.8 if I need to.
Am I missing anything major here? I realize there are some details about port
allocation that I'll need to address.
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark StosbergPrincipal Developer
hes are welcome. The code is on GitHub now [1],
but a diff against the latest release would also be welcome.
1. http://github.com/markstos/CGI.pm/tree/master
Thanks!
Mark
--
http://mark.stosberg.com/
On Thu, Aug 20, 2009 at 11:47:56PM -0700, Fred Moyer wrote:
> On Thu, Aug 20, 2009 at 7:54 AM, Mark Copper
> wrote:
> > Hi,
> >
> > I have a Mason dhandler that generates an HTML page containing a form.
> > The action of the form is to get the same page that is displ
ully?
Sorry if *this* page is gibberish. Thanks for reading.
Mark
This is a case of I'm pretty sure I saw this before but can't for the
life of me remember where -- so it might not even be possible.
I'm trying to access the values of the 'Order', 'Allow', and 'Deny'
apache directives, as they're set at request time, i.e. after merging.
Basically what I want to d
Thank you. Adding "use Apache2::SubRequest ();" to my startup.pl solves
the problem, and it explains the divergent behavior between the two
virtual hosts.
Mark
On Wed, Apr 22, 2009 at 09:03:50AM -0400, Adam Prime wrote:
> Mark Copper wrote:
> >Hi,
> >
> >I
e Apache location is
SetHandler perl-script
PerlHandler MyApp::Mason
DefaultType text/html
Thank you.
Mark
On Tue, 31 Mar 2009, Mark Hedges wrote:
> On Tue, 31 Mar 2009, Fred Moyer wrote:
>
> > Do you have /usr/lib64 in your /etc/ld.so.conf? Been a
> > while since I've done 64 bit but that always seemed to
> > be the issue. Run ldconfig if needed after you add it.
>
/hapi/bin
/opt/dell/srvadmin/oma/bin
/opt/dell/srvadmin/omsa/bin
/opt/dell/srvadmin/rac5/bin
/opt/dell/srvadmin/rac5/libs
/opt/dell/srvadmin/shared/bin
/opt/dell/srvadmin/sm
/opt/dell/srvadmin/sm/dellvl
?? what is this stuff?
Argh why can't I just use `apt-get`?
Mark
/libdb-4.3.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [libapreq2.la] Error 1
Mark
This worked at one time on this machine. Can't do it now,
nor on new similarly configured machines. Any ideas? --mark--
hed...@anubis:~/DeSpam$ sudo updatedb
hed...@anubis:~/DeSpam$ locate Request.pm
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/APR/Request.pm
/usr/lib/
t;.
Chromatic's blog on the subject, http://www.modernperlbooks.com/mt/,
is probably the best
starting place for that idea.
- Mark
traight CGI, you probably can't do this, because
the interpreter gets started up fresh for every hit to the
url.
Mark
nge the namespaces
> for different versions or run separate servers.
What about PerlOptions +Parent?
http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_
Mark
rce apache not to start
eval {load_application(); 1} || do { warn $@; die };
??
Mark
ou expand your application you don't have to
keep passing it around. You get what you wanted in the
first place by using objects and containing all the
per-request objects like CGI within the one per-request
WebApp object.
Mark
I'm trying to say that you shouldn't use custom headers to
save this information, when you should be using the correct
facility, which is pnotes. Why do you want to use the wrong
thing when the right thing is available?
Mark
On Fri, 13 Feb 2009, Solutio at Gmail wrote:
> I un
ant to do is to factor the parts of your
application that require the database onto a separate
server with a different URL, that way you can manage them.
Mark
On Wed, 11 Feb 2009, Ivan Heffner wrote:
> I realize that this response is months late, but this thread is only
> now coming to my a
ip of @INC in the App::Engine module
> within a BEGIN block but then move it to the import function of App::Engine,
> to
> no unvail.
Would this work in your CGI instead of fiddling with @INC:
use FindBin;
use lib "$FindBin::Bin/../lib";
or something like that?
Mark
lem. We'll give it a try.
To recap, you shouldn't use the custom header, you should
probably use $r->pnotes or maybe $c->pnotes to store the
information from the beginning to be accessed at the end.
This is what the pnotes tables are for. Don't mess with the
headers. Headers are for communicating with the client.
Mark
>pnotes seems to work these days, I would
have expected
$c->pnotes->{request_data} = $data;
or something like that.
Mark
directives with
Apache2::Module. Some good examples are in
Apache2::Controller::Directives (as a separate package) or
Apache2::AuthenOpenID (built into a handler package). Also
see
http://perl.apache.org/docs/2.0/user/config/custom.html#Creating_and_Using_Custom_Configuration_Directives
.
Mark
singleton. It can be accessed from anywhere in the
> interpreter that has access to the Cart namespace by a static call to
> Cart->new
Under mod_perl, doesn't that mean that if user A is the
first to hit an interpreter and the cart instance is created
for them, then if user B's request is the next to be served
by the mod_perl child, that user B will get user A's cart?
Mark
m out of $self when you need them in whatever routine. That,
I would say, is the biggest benefit (to me) for being strict
about using object structure whenever it makes sense.
Mark
catalog should not contain the cart.
Maybe your application should be a sort of "view" controller
that contains references to both the catalog object (source of
product data) and the cart object (contains items they bought).
view object
/ \
catalog cart
Then, the view selects what items to display, and asks the
cart if it contains those items when deciding whether to
display the flag.
Mark
. And if your objects need to be persistent and
have storage associated with them, start with DBIx::Class
from the beginning, don't try to add that later after you've
written "simple" data getters/setters. ;-)
Mark
/usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 167) line 3.\n
There is no Apache2.pm module.
And even without that, there is no Apache::compat module,
either:
Starting httpd: Syntax error on line 59 of
/etc/httpd/sites.d/blah.conf: Can't locate Apache/compat.pm
in @INC (...)
Am I missing something obvious here?
Thanks.
Mark
you to look at the
> > headers of the e-mail for the list management addresses?
> > --mark--
>
> When using gmail it's not exactly obvious. I agree with someone who
> posted a few days ago. It wouldn't hurt to put it in a footer.
I apologize for my irasci
How many times to people have to tell you to look at the
headers of the e-mail for the list management addresses?
--mark--
On Tue, 20 Jan 2009, Yuan Zhang wrote:
> unsubscribe
>
e
List::MoreUtils::natatime() under threads. (But the rest of
that library works.) It's a sad state of affairs that a
large chunk of CPAN doesn't play nice with threads, and
there's usually not any way of knowing which library is
causing the problem. It might not even be the oracle
thingy, maybe something else you're loading.
Mark
1 or 2 (as
> opposed to the default 1) will help ease the pain.
Helps to test this kind of thing (when testing manually) by
starting httpd with -X... less confusing.
Mark
u'll have to balance how many
writes you expect to get with how many reads, maybe reading
actions do not require locks on the data file.
Mark
es it work to do:
PerlOptions +Parent
use lib '/var/blah';
Or use the lib dir from a startup script called in the vhost block
with PerlRequire?
Mark
1 - 100 of 322 matches
Mail list logo