Re: PerlTaintMode and PERL5LIB/PERL5OPT env vars.

2001-02-11 Thread Stas Bekman
sorry for delay in followup, I was working on other book chapters and I'm not good at having too many context switches :( On Fri, 26 Jan 2001, Doug MacEachern wrote: > On Tue, 9 Jan 2001, Stas Bekman wrote: > > > I've lost the original email, but this is reply from Doug to my > > email. I've as

Re: Stop button (was: Re: General Question)

2001-02-11 Thread Bill Moseley
I don't know why I have to learn this fresh again each time -- it appears I'm confusing mod_perl and mod_cgi. Let's see if I have this right. Under mod_perl and apache >= 1.3.5 if the client drops the connection Apache will ignore it (well it might print an info message to the log file about "br

Re: General Question

2001-02-11 Thread Ken Williams
[EMAIL PROTECTED] (Buddy Lee Haystack) wrote: >Situation: >I press the submit button on a form 55 times in 15 seconds. Each >request would normally return data to the browser within ten seconds >due to the time it takes the database query to execute. > > >Question: >What happens to the 54 earlier

Re: mod_perl guide corrections: & in uris

2001-02-11 Thread Robin Berjon
At 03:26 12/02/2001 +0100, Marc Lehmann wrote: >On Mon, Feb 12, 2001 at 03:13:55AM +0100, Robin Berjon <[EMAIL PROTECTED]> >wrote: >> I don't think so. The browser would be right to treat ® as an entity, >> not ®. > >But why? It's not HTML in the first place, so expecting from clients to >interpr

Re: mod_perl guide corrections: & in uris

2001-02-11 Thread Marc Lehmann
On Mon, Feb 12, 2001 at 03:13:55AM +0100, Robin Berjon <[EMAIL PROTECTED]> wrote: > I don't think so. The browser would be right to treat ® as an entity, > not ®. But why? It's not HTML in the first place, so expecting from clients to interpret it in one way or another is not sensible. > If it h

Re: mod_perl guide corrections: & in uris

2001-02-11 Thread Robin Berjon
At 02:54 12/02/2001 +0100, Marc Lehmann wrote: >Stas told me to forward my mail to the list, since there was a large >discussion about it. Since I now see that this seems to have been a kind >of dispute and not an ommision I'll provide references to the standards >below. > >- Forwarded message

mod_perl guide corrections: & in uris

2001-02-11 Thread Marc Lehmann
Stas told me to forward my mail to the list, since there was a large discussion about it. Since I now see that this seems to have been a kind of dispute and not an ommision I'll provide references to the standards below. - Forwarded message from Marc Lehmann <[EMAIL PROTECTED]> - Subject

Stop button (was: Re: General Question)

2001-02-11 Thread Bill Moseley
At 08:43 AM 02/12/01 +0800, Stas Bekman wrote: >> What happens to the 54 earlier processes, since I submitted the request 55 times? How do Apache & mod_perl handle the processes to nowhere? > >They get aborted the first moment they try to send some output (or read >input if they didn't finish yet)

Re: problems with %Location inside perl-sections

2001-02-11 Thread Marc Lehmann
On Mon, Feb 12, 2001 at 08:48:57AM +0800, Stas Bekman <[EMAIL PROTECTED]> wrote: > Looks like Apache doing stat() calls problem. Try to run the request under > strace(1) or truss(1). See: > http://perl.apache.org/guide/performance.html#Reducing_the_Number_of_stat_Ca this is with perl-status: [pi

Re: Slow $r->print

2001-02-11 Thread Erdmut Pfeifer
On Mon, Feb 12, 2001 at 01:51:29AM +0100, Alvar Freude wrote: > > > Erdmut Pfeifer schrieb: > > > > I just tried it a couple of times with wget. I always got something > > between 150-190KB/sec -- doesn't seem too slow to me :) > > > > $ wget http://www.assoziations-blaster.de:7000/forum/forum

Re: problems with %Location inside perl-sections

2001-02-11 Thread Stas Bekman
On Sun, 11 Feb 2001, Marc Lehmann wrote: > I have two problems related to setting Location directives from within > perl sections that I don't understand (I've looked at the mod_perl guide > and the archive but a RTFM is certainly welcome ;) > > First problem: works on url space only while $Loc

Re: u-1-20.karlsruhe.ipdial.viaginterkom.de, Re: Slow $r->print

2001-02-11 Thread Alvar Freude
Robin Berjon wrote: > > That looks like someone testing your problem on telnet and getting it wrong > the first time. Probably not a cause for worry. oh yes, sorry! I'm a little bit paranoid, because i had some cracking attempts the last time :( Ciao Alvar -- Alvar C.H. Freude | [E

Re: Slow $r->print

2001-02-11 Thread Alvar Freude
Erdmut Pfeifer schrieb: > > I just tried it a couple of times with wget. I always got something > between 150-190KB/sec -- doesn't seem too slow to me :) > > $ wget http://www.assoziations-blaster.de:7000/forum/forum-list_0.html > --01:15:32-- http://www.assoziations-blaster.de:7000/forum/for

Re: General Question

2001-02-11 Thread Stas Bekman
On Sun, 11 Feb 2001, Buddy Lee Haystack wrote: > Situation: > I press the submit button on a form 55 times in 15 seconds. Each request would >normally return data to the browser within ten seconds due to the time it takes the >database query to execute. > > > Question: > What happens to the 5

Re: u-1-20.karlsruhe.ipdial.viaginterkom.de, Re: Slow $r->print

2001-02-11 Thread Robin Berjon
At 01:24 12/02/2001 +0100, Alvar Freude wrote: > # tail debug/2001_02_12.log >62.180.20.1 - - [12/Feb/2001:00:58:01 +0100] "ÿôÿýÿôÿýÿôÿýÿôÿýÿôÿý" 200 >62.180.20.1 - - [12/Feb/2001:00:58:30 +0100] "HEAD >/forum/forum-list_0.html HTTP/1.0" 404 0 "-" "-" 4 > >62.180.20.1 ==> u-1-20.karlsruhe.ipdial.

Re: Slow $r->print

2001-02-11 Thread Erdmut Pfeifer
On Mon, Feb 12, 2001 at 12:56:51AM +0100, Alvar Freude wrote: > Hi, > > I recognized, that the output of (my) mod_perl Scripts is very slow, if > there are longer texts. > > I use the following Code on a Linux machine (PII 350, 320 MB), Apache > 1.3.12, mod_perl 1.23: > > > $r->header_out('C

u-1-20.karlsruhe.ipdial.viaginterkom.de, Re: Slow $r->print

2001-02-11 Thread Alvar Freude
# tail debug/2001_02_12.log 62.180.20.1 - - [12/Feb/2001:00:58:01 +0100] "ÿôÿýÿôÿýÿôÿýÿôÿýÿôÿý" 200 3262 "-" "-" 1 62.180.20.1 - - [12/Feb/2001:00:58:30 +0100] "HEAD /forum/forum-list_0.html HTTP/1.0" 404 0 "-" "-" 4 [...] 62.180.20.1 ==> u-1-20.karlsruhe.ipdial.viaginterkom.de h ... Ni

Re: Slow $r->print

2001-02-11 Thread Alvar Freude
Hi, Matt Sergeant wrote: > > > $r->header_out('Content-Length', length($$textref)); > > $r->header_out('Connection', 'close'); > > $r->send_http_header; > > > > $r->print($$textref) unless $r->header_only; > > FWIW, you can pass in just $textref and print does the wrong thing. Err, I >

Re: Slow $r->print

2001-02-11 Thread Matt Sergeant
On Mon, 12 Feb 2001, Alvar Freude wrote: > Hi, > > I recognized, that the output of (my) mod_perl Scripts is very slow, if > there are longer texts. > > I use the following Code on a Linux machine (PII 350, 320 MB), Apache > 1.3.12, mod_perl 1.23: > > > $r->header_out('Content-Length', leng

Slow $r->print

2001-02-11 Thread Alvar Freude
Hi, I recognized, that the output of (my) mod_perl Scripts is very slow, if there are longer texts. I use the following Code on a Linux machine (PII 350, 320 MB), Apache 1.3.12, mod_perl 1.23: $r->header_out('Content-Length', length($$textref)); $r->header_out('Connection', 'close');

RE: Debug perl package in Apache

2001-02-11 Thread Wang, Pin-Chieh
Hi Sander, Thanks for the info, I read the article you suggested, and try to testout the server-status (as oppose to the perl-status as the example suggested,) but my testing was not quite right, hope you can answer my questions First I can't put the block at the beginning of the http.conf (I go

Re: Apache::ASP and "Undefined subroutine &#::handler called."

2001-02-11 Thread Joshua Chamas
Eric Bellotti wrote: > > Hello, > > I set BufferingOn = 1, Debug was already = 2. > > access-log reports a 500, > > 216.221.202.194 - - [10/Feb/2001:14:47:22 -0500] "GET /categories.asp > HTTP/1.1" 500 578 > > error-log reports > > [Sat Feb 10 14:52:05 2001] [error] Null filename used at (ev

General Question

2001-02-11 Thread Buddy Lee Haystack
Situation: I press the submit button on a form 55 times in 15 seconds. Each request would normally return data to the browser within ten seconds due to the time it takes the database query to execute. Question: What happens to the 54 earlier processes, since I submitted the request 55 times? H

problems with %Location inside perl-sections

2001-02-11 Thread Marc Lehmann
I have two problems related to setting Location directives from within perl sections that I don't understand (I've looked at the mod_perl guide and the archive but a RTFM is certainly welcome ;) First problem: works on url space only while $Location requires existing directories (full httpd.conf

Re: [RESEND] seg fault with Apache::URI ... weird

2001-02-11 Thread Ask Bjoern Hansen
On Fri, 9 Feb 2001, Jeffrey W. Baker wrote: [...] > Actually, I didn't. Does this mean that strcasecmp(3) on FreeBSD doesn't > segfault when given NULL pointers? Or does this mean that the version of > Apache at the time (1.3.6 and 1.3.9) didn't have this problem? The code > in Apache hasn't

Re: [PATCH] Put Apache/apxs flags into a safer place

2001-02-11 Thread Ask Bjoern Hansen
On Tue, 6 Feb 2001, Wilfredo Sanchez wrote: >This puts Apache's CFLAGS into AP_CFLAGS instead of CFLAGS, so that > wacky people like me who like to override CFLAGS from the make line > (make CFLAGS='-arch ppc -arch i386') can do so without stomping the > Apache flags. Thanks. Committed (a

Config directives segfault

2001-02-11 Thread Matt Sergeant
Under mod_perl 1.25 I get segfaults related to config directives. I tracked this down to perl_config.c, perl_perl_create_cfg, where the values of PERL_DIR_CREATE (or PERL_SERVER_CREATE) had been overwritten or something (gdb said "Out of bounds" for the type variable). In AxKit.xs (generated by A

1.25, warn() now goes to server log

2001-02-11 Thread Matt Sergeant
Under 1.24_02 and under, warn() output went to the virtual host's log, or if you like, the request log. I've upgraded to 1.25 and it seems that warn() now goes to the server log. I can sort of get back the old functionality by using $SIG{__WARN__}, but not entirely, as it seems impossible to get p

Re: Apache::SubProcess failures

2001-02-11 Thread Aaron Kennedy
On Sat, 10 Feb 2001, Steve Reppucci wrote: > > Are you certain that your problem is in the output redirection? That > message seems to indicate that the problem is in exec'ing /usr/bin/ls. Are > you sure that it (ls) exists at that path, rather than just /bin/ls? I feel kind of embarrassed abo