Here's another patch for libapreq that should help keep
Apache::Request from hogging memory during large file uploads.
The 2 main problems with the multipart_buffer code are
1) the loop in multipart_buffer_fill needs "optimizing".
The my_join call (line 142 in multipart_buffer.c) mallocs
Hi,
Does __END__ directive at the end of every mod_perl script
reduce memory used by httpd ?
Best regards,
/Vlad
you might want to 'use strict' and see what pops up :)
additionally, you might want to read up on mod_perl_traps.pod and
http://perl.apache.org/guide/porting.html
specifically
http://perl.apache.org/guide/porting.html#Exposing_Apache_Registry_secret
HTH
--Geoff
-Original Message-
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 5:46 PM
To: Geoffrey Young
Cc: [EMAIL PROTECTED]
Subject: Re: Apache::Upload ?
Geoffrey Young wrote:
the documentation in Apache::Request is pretty complete.
I've only
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 4:45 PM
To: Geoffrey Young
Cc: [EMAIL PROTECTED]
Subject: RE: Upgrade
Looks like I'm going to have to recompile the works. I've downloaded
We attempted something similar here, and failed. We'd definately be
interested in seeing this implimentation.
-Original Message-
From: Jerrad Pierce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 4:52 PM
To: '[EMAIL PROTECTED]'
Subject: Apache::Session
Has anybody
"RE" == Rob Egan [EMAIL PROTECTED] writes:
RE CGI scripts to behave in mod_perl. All it does is capture e-mail addresses,
RE and place them in a text file so we can gather them up later and drop them
RE into a database. If you run the script as a regular CGI (without mod_perl
RE enabled) it
Vivek Khera [EMAIL PROTECTED] writes:
"RE" == Rob Egan [EMAIL PROTECTED] writes:
RE CGI scripts to behave in mod_perl. All it does is capture e-mail addresses,
RE and place them in a text file so we can gather them up later and drop them
RE into a database. If you run the script as a
On 29 Jun 2000, Frank D. Cringle wrote:
Vivek Khera [EMAIL PROTECTED] writes:
"RE" == Rob Egan [EMAIL PROTECTED] writes:
RE CGI scripts to behave in mod_perl. All it does is capture e-mail addresses,
RE and place them in a text file so we can gather them up later and drop them
RE
Hi Stas,
Just a small point, maybe there's a place for it in the Guide?.
The following doesn't work
use integer;
use CGI::Cookie;
my $q = new CGI::Cookie( -name = ... );
because the `-' in `-name' is misinterpreted as a negative sign.
To get it to work, write
my $q = new CGI::Cookie(
On Thu, 29 Jun 2000, Stas Bekman wrote:
When using file locking one must make sure, that if the script has been
stopped before the close() was called, to use an END block under Registry
or $r-register_cleanup() anywhere. See:
I am about to embark on a journey to find/create a brower sniffing
module. It should get three things: 1) Browser 2) Version 3) Platform.
Has anyone created such a beast? If I write it myself, I will be happy
to share the code with those on the list.
I'm hoping it's been done already, because
I've also played with the idea of creating a similiar class, but have not
had time to really get on with it.. The best client sniffer that I have
found thus far is a javascript (ewww) one.. but it would rock to have this
functionality as an apache mod!
Casey Bristow wrote:
I've also played with the idea of creating a similiar class, but have not
had time to really get on with it.. The best client sniffer that I have
found thus far is a javascript (ewww) one.. but it would rock to have this
functionality as an apache mod
On Thu, 29 Jun 2000, Drew Taylor wrote:
I'm hoping it's been done already, because the user-agent strings are
terribly inconsistent...
I needed something like that once and ended up with this:
sub UA {
my $ua = shift;
my $n = "";
my $v = "";
# $n is the name of the browser
# $v
On Wed, 28 Jun 2000, Stas Bekman wrote:
In the mod_perl Guide's chapter "mod_perl for ISPs" that you can read at
http://perl.apache.org/guide/multiuser.html I go through various scenarios
that can be deployed by ISPs who want to provide mod_perl services. The
chapter talks about things to
Ask Bjoern Hansen wrote:
On Thu, 29 Jun 2000, Drew Taylor wrote:
I'm hoping it's been done already, because the user-agent strings are
terribly inconsistent...
I needed something like that once and ended up with this:
snip
Cool! I ripped off the browser version code. It seemed much
Does anyone know of a good mod_perl handler or CGI for browsing the perl
docs and various module docs? I'd prefer to offer this functionality to my
developers on our intranet, rather then sending them off to
http://search.cpan.org
I've also been looking for a good one for system man pages.
Hi all-
On a totally different subject, I've been experiencing problems with the
interaction between CGI::Carp and Apache::Session. I find that in a
mod_perl context, if I import CGI::Carp before I import Apache::Session,
then I run into the following error:
[Thu Jun 29 13:14:03 2000] [error]
Occasionaly, during a GET/POST, the request will be
dropped and netscape/IE returns "Document Contains No
Data". The errors logs report:
[modperl] caught SIGPIPE in process 18311 hint: may be a
client (browser) hit STOP?
[modperl] process 18311 going to Apache::exit with
status=-2
When this
--On Wednesday, June 28, 2000 4:35 PM +0200 ubr
[EMAIL PROTECTED] wrote:
Hello mailinglist, i have a problem...
I wrote a mod_perl-script running on an Apache-Server which has
to receive a GIF-File from a NT-Server via a IO::Socket. (see code below)
On the NT-side there is a
Hi all,
I am new to mod_perl and i have one problembr
I want to rewrite this simple script from fastcgi to
mdo_perl
-
use FCGI;
$cnt = 0;
while (FCGI::Accept)
{
print "Content-type:text/html\n\n";
print $cnt++;
}
-
This script writes (when i relaod it) 1,2,3,4,5,...
and
I am new to mod_perl and i have one problembr
.
.
.
This script writes 1,1,1,2,2,2,3,3,3,2,2,3,4,2,1 .
randomly !!
Global variables are your problem. The thing is, each global has a
value that is persistent... IN ANY GIVEN APACHE CHILD PROCESS!
So, your increments are working, but you
seems to me, that the script is working as it should.. you are just
hitting several different instances of the script.. one for each
apache child process.. try starting apache with the -X flag.
'./httpd -X' .. this will cause apache to run in single process mode.
hope this helps.
On
Scott Alexander wrote:
I'm trying to get the data that is posted from the browser durring a
request.
if ($r-method ne 'GET')
{
$r-read($buffer,$r-header_in('Content-Length'));
#proccess data...
}
There's a higher-level method for that, $r-content; I'd do something
like
Would you mind please submitting this as a standard NON-Apache CPAN module?
There are too many modules (even 1 is too many... ;)) under the Apache::*
moniker that actually can be used in generic CGI programs.
The fixuphandler sounds interesting, but I would prefer if that were a
wrapper
Looking at this, I'm tempted to do a similar thing. My thought was
to take the code and then twist it slightly to put the information into
a database. ie when I create a new session, grab the information
about browser etc.
Would save me a bit if it were already a completed apache::
On Fri, 30 Jun 2000, Gunther Birznieks wrote:
There are too many modules (even 1 is too many... ;))
under the Apache::* moniker that actually can be used in
generic CGI programs.
yeah, i'm thinking the same thing about Apache::Session!
On Fri, 30 Jun 2000, Gunther Birznieks wrote:
So two CPAN submissions, one under Apache::* and another
under CGI::* or maybe under LWP (I prefer CGI::*
though)...
i vote HTTP!
Ask Bjoern Hansen wrote:
On Thu, 29 Jun 2000, Drew Taylor wrote:
I'm hoping it's been done already, because the user-agent strings are
terribly inconsistent...
I needed something like that once and ended up with this:
sub UA {
my $ua = shift;
my $n = "";
my $v = "";
this
At 09:06 AM 6/30/00 +0700, Edwin Pratomo wrote:
Ask Bjoern Hansen wrote:
On Thu, 29 Jun 2000, Drew Taylor wrote:
I'm hoping it's been done already, because the user-agent strings are
terribly inconsistent...
I needed something like that once and ended up with this:
sub UA {
James-
You and are are saying the same thing, just with different terminology.
I agree completely. :-)
-Nate
James G Smith wrote:
Nathan Wiger [EMAIL PROTECTED] wrote:
UseCanonicalName On# = 1
UseCanonicalName Off # = 0
#UseCanonicalName On# = undef (commented out)
NW] In any case, I have several questions:
NW]
NW] 1. Does a module like this exist anywhere?
You may want to take a look at AppConfig module. It does provide
generic capability to parse various kinds of config file. But I'll
be a happy user to have more spesific Apache related in
33 matches
Mail list logo