multipart_buffer patch for libapreq

2000-06-29 Thread joe
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

does __END__ at the end save memory?

2000-06-29 Thread Vladislav Safronov
Hi, Does __END__ directive at the end of every mod_perl script reduce memory used by httpd ? Best regards, /Vlad

RE: can't properly append to file from mod_perl script

2000-06-29 Thread Geoffrey Young
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-

RE: Apache::Upload ?

2000-06-29 Thread Geoffrey Young
-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

RE: Upgrade

2000-06-29 Thread Geoffrey Young
-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

RE: Apache::Session

2000-06-29 Thread Kreimendahl, Chad J
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: can't properly append to file from mod_perl script

2000-06-29 Thread Vivek Khera
"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

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Frank D. Cringle
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

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Stas Bekman
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

use integer and CGI::Cookie

2000-06-29 Thread G.W. Haywood
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(

Re: can't properly append to file from mod_perl script

2000-06-29 Thread Matt Sergeant
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:

Browser Sniffing

2000-06-29 Thread Drew Taylor
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

Re: Browser Sniffing

2000-06-29 Thread Casey Bristow
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!

Re: Browser Sniffing

2000-06-29 Thread Drew Taylor
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

Re: Browser Sniffing

2000-06-29 Thread Ask Bjoern Hansen
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

Re: [input] mod_perl and ISPs in the real world

2000-06-29 Thread Ask Bjoern Hansen
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

Re: Browser Sniffing

2000-06-29 Thread Drew Taylor
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

perldoc gateway/handler

2000-06-29 Thread Ian Mahuron
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.

Possible mod_perl or ??? bug?

2000-06-29 Thread Nathan Wiger
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]

SIGPIPE errors

2000-06-29 Thread Brent Meshier
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

Re: mod_perl socket problem

2000-06-29 Thread Rob Tanner
--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

global variables in mod_perl

2000-06-29 Thread Tomas Zeman
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

Re: global variables in mod_perl

2000-06-29 Thread Richard Dice
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

Re: global variables in mod_perl

2000-06-29 Thread Casey Bristow
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

Re: getting data posted to site

2000-06-29 Thread Roger Espel Llima
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

Re: Browser Sniffing

2000-06-29 Thread Gunther Birznieks
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

Re: Browser Sniffing

2000-06-29 Thread Scott Alexander
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::

Re: Browser Sniffing

2000-06-29 Thread brian moseley
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!

Re: Browser Sniffing

2000-06-29 Thread brian moseley
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!

Re: Browser Sniffing

2000-06-29 Thread Edwin Pratomo
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

Re: Browser Sniffing

2000-06-29 Thread Gunther Birznieks
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 {

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
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)

Re: Apache::Config module

2000-06-29 Thread Nathan Wiger
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