Which versions of :
Apache
mod_perl
libapreq2
?
also, what os
this might be better suited to the libapreq list - but that info is
kinda needed
On Aug 24, 2005, at 5:40 PM, Ted wrote:
Blank value in cookie causes server to die with a Segmentation Fault.
my $value = '';
my $
Hi all,
If the performance you get is not enough for you, look for the
bottleneck. This could be running out of CPU, running out of memory, or
contention for a shared resource like a database. Then you fix it, by
changing code or buying hardware.
I'll try that...
Thanks for helping me out..
On Aug 24, 2005, at 3:40 PM, Ted wrote:
Blank value in cookie causes server to die with a Segmentation Fault.
For me, too.
Blank value in cookie causes server to die with a Segmentation Fault.
my $value = '';
my $cookie = Apache2::Cookie->new($r,
-name => 'test_cookie',
-value => $value,
-path => '/',
);
$cookie->bake($r)
Brian Gorby wrote:
Is this something that's possible in general? with mod_perl?
Found it. Apache::Connection->aborted() is just what I needed.
-Brian
This is likely not a strictly mod_perl2 problem, but I'm not finding resolution
elsewhere.
I have written a custom form data submission parser for our site. Admittedly,
not one of my wiser decisions, but it works .. until now.
We have a customer trying to use a Motorola i530 phone with a portio
> This strange kind of segfaults is usually the syptoms of disagreements in
> large-file support in httpd/apr/perl.
>
> Detecting these kind of configuration problems has been discussed before, but
> it's not quite as easy as it sounds ;-)
>
> You can see one of the original discussions about thi
On Wed, 2005-08-24 at 17:49 +1000, Badai Aqrandista wrote:
> I have put a reverse procy in front of my mod_perl servers and I have set
> MaxClient to 30. I have tried setting it to 50, but it slows down the
> response time.
Are you running out of memory when you set it to 50? That's what you
ar
On Wed, 2005-08-24 at 13:08 -0400, Brian Gorby wrote:
> I'd like to be able to have some sort of confirmation that the file was
> sent / received in entirety before recording the download; if the
> download times out for whatever reason for the client, the download will
> not be recorded.
>
> I
Thank you for helping me out.
mod_apreq2
Philip M. Gollucci wrote:
Ted wrote:
I am not using threads either.
are you loading anything else like
mod_apreq1/2
mod_php
etc
Ted wrote:
I am not using threads either.
are you loading anything else like
mod_apreq1/2
mod_php
etc
--
END
What doesn't kill us can only make us stronger.
Nothing is impossible.
On Wed, 2005-08-24 at 09:45 -0500, Boysenberry Payne wrote:
> So it would seem this is a circular reference right?
> How can I get the info I need in each of these without getting caught
> by this?
Some techniques are described here:
http://www.perl.com/pub/a/2002/08/07/proxyobject.html
> I've b
I am not using threads either.
Philip M. Gollucci wrote:
Ted wrote:
Hi,
Has anyone experienced a slowdown in the start and stop times of the
server
when modules are preloaded? It takes more time to preload under mp2
than under mp1.
I tried this httpd 1.3.33/mp1 1.29 and httpd 2.3.0/mp2
Ted wrote:
Hi,
Has anyone experienced a slowdown in the start and stop times of the server
when modules are preloaded? It takes more time to preload under mp2
than under mp1.
I tried this httpd 1.3.33/mp1 1.29 and httpd 2.3.0/mp2 svn head
Both start in stop in ~ 2-3 seconds or less.
Both used
Brian Gorby wrote:
I'd like to be able to have some sort of confirmation that the file was
sent / received in entirety before recording the download; if the
download times out for whatever reason for the client, the download will
not be recorded.
Is this something that's possible in general?
I'm programming a web application that limits the number of downloads
for clients on certain files:
...
unless ( $r->header_only ) {
$r->send_fd($fh);
$self->record_download($user_id, $file_id);
}
close($fh);
I'd like to be able to have some sort of confirmation that the file was
sent / re
Hi,
Has anyone experienced a slowdown in the start and stop times of the server
when modules are preloaded? It takes more time to preload under mp2
than under mp1.
mp2, preloading no modules: start and stop times are on the order of a
second or less
mp2, preloading modules listed below: star
On Aug 24, 2005, at 9:25 AM, Perrin Harkins wrote:
I'm not sure what would be dangerous about that, but I guess there must
be a larger context.
Here is an example I gave on Perl Monks for an example of my issue in a larger context:
package Base;
sub handler {
my $this = {};
bless $this;
$this->
On Aug 24, 2005, at 9:19 AM, Philip M. Gollucci wrote:
$Apache::DBI::DEBUG = 2;
$Apache::AuthDBI::DEBUG = 2;
I put them in and didn't notice anything in the error_log. Maybe I
need to do something else?
Also, maybe I should mention it's any use statements in the startup.pl
that make the er
On Wed, 2005-08-24 at 08:53 -0500, Boysenberry Payne wrote:
> I'm using an OS X box with MP 1.26 and have striped everything down to
> a basic
> handler and still get the errors intermittently. Someone on this list
> mentioned there
> was a known apache 1.3.33/ MP 1.26 bug something to this effe
Philip M. Gollucci wrote:
Arnaud Blancher wrote:
in apache:
Alias /cgi-p/ /home/publishing4/cgi-p/
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlOptions +ParseHeaders
#SetEnv LC_CTYPE '[EMAIL PROTECTED]'
# or
PerlSetEnv
Boysenberry Payne wrote:
There errors are gone. If I add:
use Apache::DBI();
in startup.pl I get the errors again...
Try Setting in startup.pl
$Apache::DBI::DEBUG = 2;
$Apache::AuthDBI::DEBUG = 2;
and tail -f /server_root/error_log
--
END
-
On Aug 24, 2005, at 8:58 AM, Philip M. Gollucci wrote:
What happens if you don't load any of YOUR code and just load mp1 with
a defacto startup.pl file.
Again don't load any of YOUR code.
When I strip it down to just:
PerlRequire /etc/httpd/perl/startup.pl
SetHandler perl-script
On Wed, 2005-08-24 at 07:02 -0400, Sean Davis wrote:
> As an aside, are there rules of thumb about what cache works best in various
> situations?
Cache::FastMmap and BerkeleyDB are the fastest by far, but they are
local to one machine. Cache::Memcached or a simple key/value table in a
MySQL serve
Boysenberry Payne wrote:
I'm using an OS X box with MP 1.26 and have striped everything down to a
basic
handler and still get the errors intermittently. Someone on this list
mentioned there
was a known apache 1.3.33/ MP 1.26 bug something to this effect. I've
resigned myself
to being ok with
I've been having weirdness with errors in my error_log while stopping
and starting
apache 1.3.33. Basically I see:
[warn] child process 867 did not exit, sending another SIGHUP
for every process. After which I get:
[notice] SIGHUP received. Attempting to restart
Then it restarts.
I'm using an
Arnaud Blancher wrote:
in apache:
Alias /cgi-p/ /home/publishing4/cgi-p/
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlOptions +ParseHeaders
#SetEnv LC_CTYPE '[EMAIL PROTECTED]'
# or
PerlSetEnv LC_CTYPE '[EMAIL PROTECTED]'
Tom Schindl wrote:
Wrong mailing list we are discussing mod-perl question and not mod_example
Maxim, try here:
http://httpd.apache.org/lists.html
specifically:
http://httpd.apache.org/lists.html#http-users
HTH
--
END
What doesn'
Tom Schindl wrote:
I would expect none of these solutions to work:
Don;t know if you read my reply to that with the handler example.
1. Solution:
-
Where from should perl know which port you are refering to / interested
in or turn it the other way round what happens when you server
hi all
with mp2 i can't fix the locale in the httpd.conf and use it in script
it's look like the env variable is set but not use.
In cgi, it's ok
here a sample script:
#!/usr/bin/perl
use CGI qw(:cgi);
print header();
use POSIX qw(locale_h);
$old_locale = setlocale(LC_CTYPE);
print $old_locale,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Maxim Sloyko wrote:
> Hi All!
>
> I'm sorry if this is the wrong place to post this question, however I
> failed to find more suitable mail-list for Apache-releated questions.
> I've downloaded and compiled Apache 2.0.54 with "mod_example", to take a
Hi All!
I'm sorry if this is the wrong place to post this question, however I
failed to find more suitable mail-list for Apache-releated questions.
I've downloaded and compiled Apache 2.0.54 with "mod_example", to take a
look. When I tried to load the module into my already running server
(whi
On 8/23/05 10:04 PM, "Perrin Harkins" <[EMAIL PROTECTED]> wrote:
> On Wed, 2005-08-24 at 10:31 +1000, Badai Aqrandista wrote:
>> Anyway, to fix this, I'm trying to make my onw shared memory with
>> Apache::SharedMem.
>
> You can share read-only data by loading it into normal variables during
> st
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
[...]
> /opt/perl/bin/perl Makefile.PL MP_APXS=/opt/httpd/bin/apxs
> Reading Makefile.PL args from @ARGV
> MP_APXS = /opt/httpd/bin/apxs
> no conflicting prior mod_perl version found - good.
> [ error] '/opt/httpd/bin/apxs -q INCLUDEDIR' failed:
> [
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Philip M. Gollucci wrote:
>> In mp2 I am doing this:
>> ---
>> use Apache2::ServerRec ();
>> use Apache2::ServerUtil ();
>> my $s = Apache2::ServerUtil->server();
>> warn "port = ",$s->port(),"\n";
>
> Try
> use Apache2::RequestUti
> Does this sound like fixing the wrong problem?
Yes. Put a reverse proxy in front of your server, tune MaxClients so
you won't go into swap, and then benchmark to see how much load you can
handle. Then think about tuning.
Thanks for replying...
I have put a reverse procy in front of my mo
36 matches
Mail list logo