Re: mp1 rflush() and buffer size

2003-08-14 Thread Stas Bekman
Douglas Theobald wrote: I have a question concerning the proper behavior of rflush() with mp1. I'm using Apache/1.3.28 and mod_perl/1.28 on OSX jaguar 10.2.6. Overall mp1 appears to work great. However, the following code does not work as expected: use CGI (); my $r = shift; my $q = new CGI; print

Re: mp1 rflush() and buffer size

2003-08-14 Thread Stas Bekman
Douglas Theobald wrote: On 8/10/03 2:46 PM, Stas Bekman [EMAIL PROTECTED] a écrit : Douglas Theobald wrote: The Searching...Please wait text does not display until the sleeps are done. Adding $|=1; up top does not help. However, this code does work: use CGI (); my $r = shift; my $q = new CGI;

mp1 rflush() and buffer size

2003-08-10 Thread Douglas Theobald
I have a question concerning the proper behavior of rflush() with mp1. I'm using Apache/1.3.28 and mod_perl/1.28 on OSX jaguar 10.2.6. Overall mp1 appears to work great. However, the following code does not work as expected: use CGI (); my $r = shift; my $q = new CGI; print

Re: MP1, Redhat 7.3: Transmission size limited after some time

2003-07-28 Thread Ged Haywood
Hi there, On Thu, 3 Jul 2003, Gerd Knops wrote: I got a really odd problem: I have identical mod_perl/apache installs on FreeBSD 3.x systems and a few Redhat 7.3 systems. After some time running OK, the Redhat systems start acting up. Transmissions are suddenly cut of after somewhere

MP1, Redhat 7.3: Transmission size limited after some time

2003-07-03 Thread Gerd Knops
Hi all, I got a really odd problem: I have identical mod_perl/apache installs on FreeBSD 3.x systems and a few Redhat 7.3 systems. After some time running OK, the Redhat systems start acting up. Transmissions are suddenly cut of after somewhere between 90 and 150 kb. Absolutely nothing in any

Re: [OT] MLDBM size limit?? :'(

2003-01-25 Thread Stas Bekman
Jim Morrison wrote: Guys, Sorry this is a little off topic... Is there a size limit on DBM's? (Or Linux files for that matter.. ) I've thrown some details of my box/code below.. Thing is I'm getting a write error and it seems to always happen when the DBM gets to 2.0Gb .. (you may think I'm

[OT] MLDBM Size Limit??

2003-01-21 Thread Jim Morrison [Mailinglists]
Guys, Sorry this is a little off topic... Is there a size limit on DBM's? (Or Linux files for that matter.. ) I've thrown some details of my box/code below.. Thing is I'm getting a write error and it seems to always happen when the DBM gets to 2.0Gb .. (you may think I'm mad for trying to make

Re: [OT] MLDBM Size Limit??

2003-01-21 Thread Ged Haywood
Hi there, On Tue, 21 Jan 2003, Jim Morrison [Mailinglists] wrote: Sorry this is a little off topic... Is there a size limit on DBM's? (Or Linux files for that matter.. ) [snip] Thing is I'm getting a write error and it seems to always happen when the DBM gets to 2.0Gb .. [snip] Linux

Re: [OT] MLDBM Size Limit??

2003-01-21 Thread Robert Landrum
On Tue, Jan 21, 2003 at 02:37:02PM +, Ged Haywood wrote: Hi there, On Tue, 21 Jan 2003, Jim Morrison [Mailinglists] wrote: Sorry this is a little off topic... Is there a size limit on DBM's? (Or Linux files for that matter.. ) [snip] Thing is I'm getting a write error

How to limit the size of requests ?

2002-08-30 Thread HalbaSus
Hi list ! I subscribed to this list because I want to learn more about mod_perl and apache. I'm familiar with perl but recently I had to surender using the old fashioned plain perl use IO::Socket; scripts... I have written a perl script which prevents browsers (or evil exploits) to send

Re: How to limit the size of requests ?

2002-08-30 Thread Geoffrey Young
I have written a perl script which prevents browsers (or evil exploits) to send buffer owerflows to apache. Basicaly this script is supposed to listen on port 80 for incoming connections. The input (from browsers) is read up to 500 characters. don't the apache directives:

Re: How to limit the size of requests ?

2002-08-30 Thread Lupe Christoph
On Friday, 2002-08-30 at 09:22:47 -0400, Geoffrey Young wrote: I have written a perl script which prevents browsers (or evil exploits) to send buffer owerflows to apache. Basicaly this script is supposed to listen on port 80 for incoming connections. The input (from browsers) is read up

Re: How to limit the size of requests ?

2002-08-30 Thread Geoffrey Young
my the time mod_perl enters the request, Apache has already taken care of parsing the request, so there's not much you can do about it (in 1.3, at least). Parsing the request *headers*. So you can't prevent any overflow in the headers with mod_perl. well, headers and the request line,

Re: How to limit the size of requests ?

2002-08-30 Thread HalbaSus
Well first of all I would like to thank Geoffrey's input... you know RTFM... that's all if I would have read about LimitRequest's before would have spared me like 2 days of coding... About that stoopid way of preventing buffer owerflows... Well, tell me a better one. Of course you can patch

Re: How to limit the size of requests ?

2002-08-30 Thread Lupe Christoph
On Friday, 2002-08-30 at 18:33:13 +, HalbaSus wrote: About that stoopid way of preventing buffer owerflows... Well, tell me a better one. Of course you can patch known bugs. But... how are you gonna prevent new buffer owerflows ? Auditing? What if the guys with 0-day warez are faster

Re: Re: How to limit the size of requests ?

2002-08-30 Thread Vasile Borcan
On Friday, 2002-08-30 at 18:33:13 +, HalbaSus wrote: About that stoopid way of preventing buffer owerflows... Well, tell me a better one. Of course you can patch known bugs. But... how are you gonna prevent new buffer owerflows ? Auditing? don't you think that before releasing any

Re: How to limit the size of requests ?

2002-08-30 Thread WC -Sx- Jones
the execution/hand-off, so the hack was approximately 50 bytes in size (BTW, I have the BSD C source code for the hack if you want it.) And yes, not to toot any horns, but 'them Apache Groupies' are pretty sharp ! ;) HTH/Sx :] (just another ApacheCon 2000 Orlando Speaker :) On Friday, August

File upload fails when size exceeds 67k bytes

2002-07-15 Thread Ian Colin Jones
Hi, I am running Apache 1.3 on OpenVMS V7.2-1H1. When I upload files to my server all works fine, until the file size exceeds 67,066 bytes. My CGI is written in Perl 5.6. I have searched my Apache documentation looking for a limiting directive in my httpd.conf file, with no success. Changing

Re: File upload fails when size exceeds 67k bytes

2002-07-15 Thread Ged Haywood
Hi there, On Mon, 15 Jul 2002, Ian Colin Jones wrote: all works fine, until the file size exceeds 67,066 bytes. I think it might be POST_MAX in CGI.pm. 73, Ged.

RE: File upload fails when size exceeds 67k bytes

2002-07-15 Thread Charles
Under the 1.x version of mod_perl, the tecnique for increasing the POST size is: use Apache::Request; handler { my $r = shift; my $apr = Apache::Request-new($r, POST_MAX=(1000*1024)); } (see http://perl.apache.org/docs/1.0/guide/snippets.html#Using_DESTROY_to_Finaliz e_Output) I have

Re: Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-10 Thread Stas Bekman
Kent, Mr. John wrote: Greetings, Have noticed that modperl-2.0 servers running on Solaris 2.7 start off at 23M in size. Five hours later they were at 38M. If allowed to continue they could eventually use up all available RAM and crash the system. Stopping then restarting returned

Re: Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-10 Thread Perrin Harkins
Stas Bekman wrote: If you are talking about threaded mpms, we will need to develop new tools to restrict the size of the perl interpreters in the pool. I was thinking about that too. Are there hooks for causing an interpreter to exit? Is it safe to simply call CORE::exit? I'd like

Re: Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-10 Thread Stas Bekman
Perrin Harkins wrote: Stas Bekman wrote: If you are talking about threaded mpms, we will need to develop new tools to restrict the size of the perl interpreters in the pool. I was thinking about that too. Are there hooks for causing an interpreter to exit? Is it safe to simply

Re: Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-10 Thread Perrin Harkins
Stas Bekman wrote: I think the idea was to have a special thread running whose only purpose is monitoring the pool of idle interpreters. That sounds like a better solution. I believe that we can add a Perl space hook that sets a flag that condemns an interpreter to death. The other

Re: Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-10 Thread Stas Bekman
and GTopLimit cheat by asking the OS how big the current process is. That won't work with threads. B::Size and B::TerseSize? Since the check can be run on the idle servers that shouldn't be a problem if they are slow. On the other hand since the idea is to always re-use the recently used

Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-09 Thread Kent, Mr. John
Greetings, Have noticed that modperl-2.0 servers running on Solaris 2.7 start off at 23M in size. Five hours later they were at 38M. If allowed to continue they could eventually use up all available RAM and crash the system. Stopping then restarting returned them to 23M. Has anyone else

RE: Growing Server Size modperl-2.0 on Solaris 2.7

2002-07-09 Thread stevea
Greetings, Have noticed that modperl-2.0 servers running on Solaris 2.7 start off at 23M in size. Five hours later they were at 38M. If allowed to continue they could eventually use up all available RAM and crash the system. Stopping then restarting returned them to 23M. Has anyone else

[OT] Re: Image::Size, TT, and mod_perl Question

2002-05-22 Thread Ken Y. Clark
On Tue, 21 May 2002, Mike Melillo wrote: Hey, Mikey! Date: Tue, 21 May 2002 23:28:29 -0400 From: Mike Melillo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Image::Size, TT, and mod_perl Question I posed this question to the Template Toolkit list and got no response, so I figured I'd

Image::Size, TT, and mod_perl Question

2002-05-21 Thread Mike Melillo
I posed this question to the Template Toolkit list and got no response, so I figured I'd give this list a shot... - Hello, below is some code I have in a mod_perl handler that checks to see if an uploaded image is less than 300 pixels tall or wide. Everything seems to be

Re: Image::Size, TT, and mod_perl Question

2002-05-21 Thread Perrin Harkins
my %vars = {TOO_WIDE = 1}; That isn't doing what you think it's doing. Try this: my $vars = { 'TOO_WIDE' = 1 };

MySQL, file upload, file size

2002-03-01 Thread Gregor Mosheh, B.S.
I'm using file upload fields, and submitting the MIME-encoded version of the file contents to a MySQL database. If I try to upload a file larger than about 500kB, the DB insertion fails and I get this in the Apache error_log: DBD::mysql::st execute failed: MySQL server has gone away at

RE: MySQL, file upload, file size

2002-03-01 Thread Fitch, George A
What's your max_allowed_packet setting in my.cnf? Gaf -Original Message- From: Gregor Mosheh, B.S. [mailto:[EMAIL PROTECTED]] Sent: Friday, March 01, 2002 3:20 PM To: [EMAIL PROTECTED] Subject: MySQL, file upload, file size I'm using file upload fields, and submitting the MIME

Fw: Size

2001-07-31 Thread John Buwa
- Original Message - From: John Buwa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 31, 2001 5:12 AM Subject: Re: Size Thanks, I went ahead and did this and it seems this did the job, my httpd is much smaller! Now i will just have to watch and see if it stays like

Size

2001-07-30 Thread John Buwa
Hello, I was wondering is this an unusual size? I know the man says size will grow etc... but i am looking for others opinions based on there setups and real life vs. text book comparison. 4669 nobody 20 0 215M 91M 204 R 29.6 55.9 1:00 httpd It seems my modperl apache runs slower than my

RE: Size

2001-07-30 Thread Michael Stevens
: Monday, July 30, 2001 11:44 AMTo: [EMAIL PROTECTED]Subject: Size Hello, I was wondering is this an unusual size? I know the man says size will grow etc... but i am looking for others opinions based on there setups and real life vs. text book comparison. 4669 nobody 20 0

Re: Size

2001-07-30 Thread Ged Haywood
On Mon, 30 Jul 2001, John Buwa wrote: It seems my modperl apache runs slower than my regular apache could this be the reason? That's likely to be a symptom, not a cause. Can you be less vague than runs slower? Under mod_perl, your Perl scripts should run faster than they do under plain

Re: Size

2001-07-30 Thread jh_lists
I was wondering is this an unusual size? I know the man says size will grow etc... but i am looking for others opinions based on there setups and real life vs. text book comparison. 4669 nobody20 0 215M 91M 204 R29.6 55.9 1:00 httpd That's not normal. Perhaps you have

SSL Certificate Distingushed Name size in bytes

2001-07-18 Thread Christopher L. Everett
Hello, This is slightly off topic, but I can't find a firm specification anywhere on the Internet that says how big a X.500 Distinguished Name could be. I've set up MySQL to have fields cert_subject_dn and cert_issuer_dn as char(255) not null. But I'm wondering if these things could get

Limiting Input size

2001-07-06 Thread Brooklyn Linux Solutions CEO
Is there a way error out of an entry which might be too large in a form or a get string with $r-content or $r-args I want to prevent an attempt to overflow the memory by sending an arguement with 10 billion bytes. I can do it after. But without doing a read(), I'm wondering if these shortcuts

Re: Limiting Input size

2001-07-06 Thread Matt Sergeant
On 06 Jul 2001 02:41:30 -0400, Brooklyn Linux Solutions CEO wrote: Is there a way error out of an entry which might be too large in a form or a get string with $r-content or $r-args I want to prevent an attempt to overflow the memory by sending an arguement with 10 billion bytes. I can

Re: Limiting Input size

2001-07-06 Thread Brooklyn Linux Solutions CEO
Thank You!! Can I mix and match, by doing Anything I can do about the get string? Ruben On 06 Jul 2001 02:41:30 -0400, Brooklyn Linux Solutions CEO wrote: Is there a way error out of an entry which might be too large in a form or a get string with $r-content or $r-args I want to

Re: Modifying the reported size in a directory index

2000-12-27 Thread Jens-Uwe Mager
-Stat-0.01.tar.gz a fixup handler can modify the reported size like so: sub MyFixup::handler { my $r = shift; my $stat = Sys::Stat-stat($r-filename); $stat-size(10_000); #whatever size $r-finfo($stat); #changed size will be reflected in dirindex output 0; } Wow

Re: Modifying the reported size in a directory index

2000-12-25 Thread Doug MacEachern
On Tue, 22 Aug 2000, Jens-Uwe Mager wrote: I am looking for a way to update the reported size of a file in a plain directory index generated by Apache. I have installed a perl fixup handler that does check if a Macintosh resource fork is available additionally to the plain data fork

Trying to use startup.pl to reduce the size of httpd child processes....

2000-11-13 Thread kevinr
Hello all, I am trying to reduce the size of my child httpd processes. We are using modperl, Embperl, DBI and DBD:Oracle. Our current httpd processes quickly grow to 22M or so after a database connection. I read in the modperl docs that modules can be preloaded into the parent httpd process

Re: Trying to use startup.pl to reduce the size of httpd child proces ses....

2000-11-13 Thread David Hodgkinson
[EMAIL PROTECTED] writes: Hello all, I am trying to reduce the size of my child httpd processes. We are using modperl, Embperl, DBI and DBD:Oracle. Our current httpd processes quickly grow to 22M or so after a database connection. I read in the modperl docs that modules can

Re: Trying to use startup.pl to reduce the size of httpd child processes....

2000-11-13 Thread Gerald Richter
I am trying to reduce the size of my child httpd processes. We are using modperl, Embperl, DBI and DBD:Oracle. Our current httpd processes quickly grow to 22M or so after a database connection. I read in the modperl docs that modules can be preloaded into the parent httpd process

Re: maximum (practical) size of $r-notes

2000-11-01 Thread Todd Finney
In continuing my work on this template system, I've run into another problem. Any one or more of the components can be a script, and the problem with the existing system which I'm trying to solve is catching redirects by them. The order in which I'm doing things is now: ( 4 part handler )

Re: maximum (practical) size of $r-notes

2000-10-30 Thread Matthew Byng-Maddick
On Mon, 30 Oct 2000, Matt Sergeant wrote: On Mon, 30 Oct 2000, Todd Finney wrote: I'm concerned about putting large amounts of data into $r-notes. Some of our script output can be pretty heavy. If $r-notes can only take simple strings, how large of a simple string is it safe to put

Re: maximum (practical) size of $r-notes

2000-10-30 Thread G.W. Haywood
Hi all, On Mon, 30 Oct 2000, Matthew Byng-Maddick wrote: On Mon, 30 Oct 2000, Matt Sergeant wrote: On Mon, 30 Oct 2000, Todd Finney wrote: AxKit uses the notes table to store interim strings for template processing. I've not yet heard a bug related to it, but then I'm not delivering

RE: maximum (practical) size of $r-notes

2000-10-30 Thread Geoffrey Young
-Original Message- From: G.W. Haywood [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 7:29 AM To: Matthew Byng-Maddick Cc: [EMAIL PROTECTED] Subject: Re: maximum (practical) size of $r-notes Hi all, On Mon, 30 Oct 2000, Matthew Byng-Maddick wrote: On Mon, 30

RE: maximum (practical) size of $r-notes

2000-10-30 Thread Geoffrey Young
-Original Message- From: G.W. Haywood [mailto:[EMAIL PROTECTED]] Sent: Monday, October 30, 2000 10:06 AM To: Geoffrey Young Cc: [EMAIL PROTECTED] Subject: RE: maximum (practical) size of $r-notes Hi all, On Mon, 30 Oct 2000, Geoffrey Young wrote: From: G.W. Haywood

RE: maximum (practical) size of $r-notes

2000-10-30 Thread Matt Sergeant
On Mon, 30 Oct 2000, Geoffrey Young wrote: that is my understanding... I guess that my point was that if you are going to have the data in perl somewhere the memory is going to be taken (for example, putting it in a tempfile but then local $/ and slurp). pnotes allows for passing by

RE: maximum (practical) size of $r-notes

2000-10-30 Thread G.W. Haywood
Hi Geoff, On Mon, 30 Oct 2000, Geoffrey Young wrote: Ged mumbled: Won't Perl then just keep that memory until the child dies...? that is my understanding... I guess that my point was that if you are going to have the data in perl somewhere the memory is going to be taken (for example,

file upload size and malformed header

2000-10-03 Thread Monika Soroczynska
med header message *and* a message about resetting the maximum upload size to 75k!? We have since wrote "stripped down" versions of the script to see if the problem is in slash, mod_perl, or apache (even running a script on one of our other webservers that does not have mod_perl running on it

Re: file upload size and malformed header

2000-10-03 Thread E.S.
It's not likely that the problem is in mod_perl... At least not based on my own experiences... I've a script that I use under mod_perl for uploading files (images) that hasn't run into any problems with file size... If you want a copy, email me offlist and I'll send it over; maybe it'll help

[OT] C question - message size in hex

2000-09-29 Thread B. Burke
Does anyone know where in Apache's code it prints the outbound response message size in hex? Example (the size is 112 on this particular message): HTTP/1.1 404 Not Found Date: Fri, 29 Sep 2000 13:58:56 GMT Server: Apache/1.3.6 (Unix) Keep-Alive: timeout=15, max=100 Connection: Keep-Alive

Re: GET request size

2000-08-25 Thread Devin Ben-Hur
Alex Menendez wrote: is there any limit to the size of a GET request url when it is generated from inside a mod_perl module? I have a POST cgi coming in with a bunch of data and I would like to turn it into a GET url so I can effectively use lookup_uri and run from the Apache::SubRequest

Modifying the reported size in a directory index

2000-08-22 Thread Jens-Uwe Mager
I am looking for a way to update the reported size of a file in a plain directory index generated by Apache. I have installed a perl fixup handler that does check if a Macintosh resource fork is available additionally to the plain data fork and it replaces the default content handler

Startup file and process size

2000-07-18 Thread Suresh
Hi all, I am trying use a startup file to load all the used modules in my web application, but when i use the startup file, the size of all the process becomes big. I excpected that only the apache's parent process size becomes become. Also when i ran the example given in the mod_perl guide

Re: Startup file and process size

2000-07-18 Thread David Hodgkinson
Suresh [EMAIL PROTECTED] writes: Hi all, I am trying use a startup file to load all the used modules in my web application, but when i use the startup file, the size of all the process becomes big. I excpected that only the apache's parent process size becomes become. Also when i ran

Re: Startup file and process size

2000-07-18 Thread Ajit Deshpande
On Tue, Jul 18, 2000 at 08:45:30AM -0700, Suresh wrote: the startup file, the size of all the process becomes big. I excpected that only the apache's parent process size becomes become. Also when i ran the example given in the mod_perl guide , to see the difference in the shared memory

[ANNOUNCE] B-Size-0.04

2000-05-16 Thread Doug MacEachern
if you're not familar with B::Size, it was written a while back to answer the question 'why are my httpds so damn BIG?' there are hooks in Apache::Status to measure the size of global/lexical variables and the syntax tree. this is a debugging/educational module, for best results, run httpd

Re: Mailing list size

1999-12-06 Thread Jeffrey W. Baker
now have to unsubscribe just to keep my day productive. Also, I perceive that signal to noise is diminishing with increasing size. Perhaps it is time to further specialize the list into sub-topics? Hrmm, rather than divide the list I think it is better to develop advanced scan-and-delete

Re: Mailing list size

1999-12-06 Thread wim
r and skip tons of stuff, wishing it would end already. modperl is well over that limit, and I now have to unsubscribe just to keep my day productive. Also, I perceive that signal to noise is diminishing with increasing size. Perhaps it is time to further specialize the list into

Mailing list size

1999-12-05 Thread Dominic A. V. Amann
productive. Also, I perceive that signal to noise is diminishing with increasing size. Perhaps it is time to further specialize the list into sub-topics? -- Dominic Amann, http://www.interlog.com/~damann/ Linux Based Solutions Ltd. Toronto, ON, M3J 1G8, Canada Tel: (416) 638

Re: Mailing list size

1999-12-05 Thread Stas Bekman
cribe just to keep my day productive. Also, I perceive that signal to noise is diminishing with increasing size. Perhaps it is time to further specialize the list into sub-topics? -- Dominic Amann, http://www.interlog.com/~damann/ Linux Based Solutions Ltd. Toront

Re: Mailing list size

1999-12-05 Thread Eric Strovink
Stas is right, I've been mass-deleting the "logo" and "demand" threads for several days, resulting in a quite manageable list. The nice thing is, you can always search the archive if you accidentally delete something (and you *should* search the archive before posting, anyway, as well as check

Re: Mailing list size

1999-12-05 Thread Anthony Gardner
size Date: Sun, 05 Dec 1999 12:08:43 -0500 Stas is right, I've been mass-deleting the "logo" and "demand" threads for several days, resulting in a quite manageable list. The nice thing is, you can always search the archive if you accidentally delete something (and you *should

Re: Mailing list size

1999-12-05 Thread G.W. Haywood
of the emails seem to have heaps of HTML and other baggage hanging onto them. These usually double the size of the message and often they dwarf it. Please check that your MUA isn't sending things unnecessarily. I hope mine isn't... 73 Ged Haywood.

httpd size...

1999-12-03 Thread Robert Locke
Hi, I was wondering if anyone had a good way to measure the real memory usage of "httpd" and her children. Under Linux, summing up 'ps -auxw | grep httpd' gives me a huge number that does not reflect shared memory. How can I found out the real memory usage? Thanks!!! Rob

Re: modperl Terminal Size error

1999-10-09 Thread Stas Bekman
Testing a simple script under modperl using Registry and -X and Apache::DB, as explained by Stas Bekman It runs OK about seven times then it fails. Here is the error_log output: resize: can't open terminal /dev/tty [Fri Oct 8 07:47:39 1999] [error] Unable to get Terminal Size

modperl Terminal Size error

1999-10-08 Thread NRL Web Master
Greetings, Testing a simple script under modperl using Registry and -X and Apache::DB, as explained by Stas Bekman It runs OK about seven times then it fails. Here is the error_log output: resize: can't open terminal /dev/tty [Fri Oct 8 07:47:39 1999] [error] Unable to get Terminal Size