Preloading modules and Perl 5.6.1 vs 5.8.0

2003-09-03 Thread e-mol Development Team
I have two servers running Apache 1.3.27 and mod_perl 1.27 both severs are running identical httpd.conf and startup.pl configurations. One is running Perl 5.8.0 the other is running 5.6.1. When I do the preloading of modules on the 5.6.1 system all seems well and shared memory goes up while unsha

RE: $r->headers_out Location and Set-Cookie

2003-09-03 Thread Garrett Goebel
Title: RE: $r->headers_out Location and Set-Cookie Geoffrey Young wrote: > > That's when you use Apache::compat, doing the mp1 syntax. > > In mp2-speak that would be: > > > >   $r->err_headers_out->add('Set-Cookie' => $packed_cookie); > >   $r->headers_out->set('Location' => $url); > >   $r-

Re: $r->headers_out Location and Set-Cookie

2003-09-03 Thread Geoffrey Young
Garrett Goebel wrote: Geoffrey Young wrote: > > That's when you use Apache::compat, doing the mp1 syntax. > > In mp2-speak that would be: > > > > $r->err_headers_out->add('Set-Cookie' => $packed_cookie); > > $r->headers_out->set('Location' => $url); > > $r->status(REDIRECT); > > > >

Process exiting prematurely

2003-09-03 Thread Flowers, Jay
I am running Windows XP, Apache 2.0.46, mod_perl 1.99, and Perl 5.8. Every request to my Perl script causes the Apache child process to exit. I have not been able to identify the issue. Below I have listed my config file (the number of threads per child is limited to ten for brevity of the log fil

RE: collecting unique client (computer) specific info?

2003-09-03 Thread kfr
Anyone know how to capture the UUID from a request? I've been looking all over the place and cant seem to find any reference to it anywhere ... K -Original Message- From: Roger Davenport [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 02, 2003 12:55 PM To: Perrin Harkins Cc: [EMA

Re: PATCH porting.pod "First Mystery"

2003-09-03 Thread Brian McCauley
Stas Bekman <[EMAIL PROTECTED]> writes: > Brian McCauley wrote: > [...] > >>Nice, but: > >> > >> > +The easiest and the fastest way to solve the nested subroutines > >> > +problem is to change C to C C for all variables for > >> > +which you get the warning. The C subroutines are never > >>... >

RE: collecting unique client (computer) specific info? [OT]

2003-09-03 Thread Ged Haywood
Hi there, On Wed, 3 Sep 2003, kfr wrote: > Anyone know how to capture the UUID from a request? What makes you think there'll be one in there? > I've been looking all over the place and cant seem to find any > reference to it anywhere ... Try Google? 73, Ged. -- Reporting bugs: http://perl

Re: Preloading modules and Perl 5.6.1 vs 5.8.0

2003-09-03 Thread Stas Bekman
e-mol Development Team wrote: I have two servers running Apache 1.3.27 and mod_perl 1.27 both severs are running identical httpd.conf and startup.pl configurations. One is running Perl 5.8.0 the other is running 5.6.1. When I do the preloading of modules on the 5.6.1 system all seems well and sha

mod_perl and GD.pm segfault

2003-09-03 Thread Jason
Embedded Perl version v5.8.0 for Apache/1.3.27 (Unix) PHP/4.3.2 mod_perl/1.28 mod_ssl/2.8.14 OpenSSL/0.9.6b I am trying to use a simple script that will display an jpeg or png image using GD.pm (readily available from CPAN) I am getting [Wed Sep 3 10:41:37 2003] [notice] child pid 832 exit sig

Re: Process exiting prematurely

2003-09-03 Thread Stas Bekman
Flowers, Jay wrote: I am running Windows XP, Apache 2.0.46, mod_perl 1.99, and Perl 5.8. Every request to my Perl script causes the Apache child process to exit. I have not been able to identify the issue. Below I have listed my config file (the number of threads per child is limited to ten for br

Re: collecting unique client (computer) specific info?

2003-09-03 Thread Stas Bekman
kfr wrote: Anyone know how to capture the UUID from a request? I've been looking all over the place and cant seem to find any reference to it anywhere ... You mean, you want to generate one? in mod_perl2/apr it'd be: use APR::UUID: my $uuid = APR::UUID->new->format; or from the command line (assu

Re: mod_perl and GD.pm segfault

2003-09-03 Thread Stas Bekman
Jason wrote: Embedded Perl version v5.8.0 for Apache/1.3.27 (Unix) PHP/4.3.2 mod_perl/1.28 mod_ssl/2.8.14 OpenSSL/0.9.6b I am trying to use a simple script that will display an jpeg or png image using GD.pm (readily available from CPAN) I am getting [Wed Sep 3 10:41:37 2003] [notice] child pid 832

RE: collecting unique client (computer) specific info?

2003-09-03 Thread Perrin Harkins
On Wed, 2003-09-03 at 12:22, kfr wrote: > Anyone know how to capture the UUID from a request? According to the mod_ssl manual, it is stored in an environment variable called SSL_SESSION_ID. - Perrin -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillis

RE: Process exiting prematurely

2003-09-03 Thread Flowers, Jay
> Jay, I can't see from your error_log what problem you are talking about. > Apache always starts and immediately restarts, so what you see is normal. It does not work this way on my Windows 2000 server machines. After every request it restarts the Apache Child Process, even though the config f

RE: Process exiting prematurely

2003-09-03 Thread Roger Davenport
Possibly change the MaxRequestsPerChild to 100 and see if it still restarts? Roger On Wed, 2003-09-03 at 13:17, Flowers, Jay wrote: > Jay, I can't see from your error_log what problem you are talking about. > Apache always starts and immediately restarts, so what you see is normal. It does

RE: Process exiting prematurely

2003-09-03 Thread Flowers, Jay
> Possibly change the MaxRequestsPerChild to 100 and see if it still restarts? > Roger   no joy.   Thanks   Jay Flowers Systems Engineer Integic Corp.

Re: collecting unique client (computer) specific info?

2003-09-03 Thread John Saylor
hi ( 03.09.03 10:42 -0700 ) Stas Bekman: > You mean, you want to generate one? in mod_perl2/apr it'd be: is there an equivalent in mod_perl1? -- \js -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

Re: collecting unique client (computer) specific info?

2003-09-03 Thread Stas Bekman
John Saylor wrote: hi ( 03.09.03 10:42 -0700 ) Stas Bekman: You mean, you want to generate one? in mod_perl2/apr it'd be: is there an equivalent in mod_perl1? I'm sure there are a few modules on CPAN that you can use. Again I'm talking about generating UUD, not extracting the SSL one. Perrin h

Re: Process exiting prematurely

2003-09-03 Thread Stas Bekman
Flowers, Jay wrote: That is the bugger of it, there is no error, it's a behavior that I noticed. Every request is slow because it needs to restart the Apache Child process. It feels much slower than CGI on IIS. Do you get this behavior with some particular script or just any kind? Does the same

Re: collecting unique client (computer) specific info?

2003-09-03 Thread Perrin Harkins
On Wed, 2003-09-03 at 15:03, John Saylor wrote: > is there an equivalent in mod_perl1? Use Data::UUID from CPAN or mod_unique_id. Note that this (and the mod_perl 2 approach Stas posted) has nothing to do with identifying the actual client, which is what the original question on this thread was a

Re: Preloading modules and Perl 5.6.1 vs 5.8.0

2003-09-03 Thread Stas Bekman
[make sure to keep the replies on the list. Thank you!] e-mol Development Team wrote: diff -u 5.6.1.txt 5.8.0.txt The two builds are quite different, I have pointed out below at least a few major differences. [EMAIL PROTECTED] src]# diff -u 5.6.1.txt 5.8.0.txt --- 5.6.1.txt 2003-09-03 14:07:02

[mp2] executing subprocesses from mod_perl

2003-09-03 Thread Haroon Rafique
Hi listers, Just needed a quick opinion: http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html suggests that Apache::SubProcess be used for executing subprocesses. Howerver, in an earlier list message, http://marc.theaimsgroup.com/?l=apache-modperl&m=102541721726752&w=2 Stas had suggested t

RE: collecting unique client (computer) specific info?

2003-09-03 Thread kfr
I'm able to see it now ... had to re-compile my server with mod_ssl (not apache-ssl) and I can see the SSL_SESSION_ID. So I take it there's no way to decrypt that and grab anything useful out of it other than it's one time uniqueness? The doc's state its a combo of a few different parameters (tim

Re: [mp2] executing subprocesses from mod_perl

2003-09-03 Thread Stas Bekman
Haroon Rafique wrote: Hi listers, Just needed a quick opinion: http://perl.apache.org/docs/2.0/api/Apache/SubProcess.html suggests that Apache::SubProcess be used for executing subprocesses. Howerver, in an earlier list message, http://marc.theaimsgroup.com/?l=apache-modperl&m=102541721726752&w=2

RE: Process exiting prematurely

2003-09-03 Thread Flowers, Jay
Title: Re: Process exiting prematurely Do you get this behavior with some particular script or just any kind? Doesthe same script work fine as mod_cgi?All scripts, work the same.  They work fine under mod_cgi.

RE: collecting unique client (computer) specific info? [OT]

2003-09-03 Thread Ged Haywood
Hi there, On Wed, 3 Sep 2003, kfr wrote: > had to re-compile my server with mod_ssl :) > the hardware address is really what I'm after. What hardware? 73, Ged. -- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html

RE: collecting unique client (computer) specific info? [OT] [x-adr][x-bayes]

2003-09-03 Thread Garrett Goebel
Title: RE: collecting unique client (computer) specific info? [OT] [x-adr][x-bayes] Ged Haywood wrote: > > On Wed, 3 Sep 2003, kfr wrote: > > > the hardware address is really what I'm after. > > What hardware? He's looking for a MAC address, cpu id, etc. something to fix the identity of t

Re: Process exiting prematurely

2003-09-03 Thread Stas Bekman
Flowers, Jay wrote: Do you get this behavior with some particular script or just any kind? Does the same script work fine as mod_cgi? All scripts, work the same. They work fine under mod_cgi. Do normal handlers behave the same way? i.e. if you don't use registry but a complete handler: http://per

RE: collecting unique client (computer) specific info? [OT] [x-adr][x-bayes]

2003-09-03 Thread kfr
Yep ... that's what I've discoverd: http://www.webdav.org/specs/draft-leach-uuids-guids-01.txt from section 3.5 ... I was assuming there was some way to parse and decrypt the mac address from: "The following is an example of the string representation of a UUID: f81d4fae-7dec-11d0-a765-00a0c91e6

RE: collecting unique client (computer) specific info? [OT][x-adr][x-bayes]

2003-09-03 Thread Ged Haywood
Hi there, On Wed, 3 Sep 2003, kfr wrote: > http://www.webdav.org/specs/draft-leach-uuids-guids-01.txt > > from section 3.5 ... I was assuming there was some way to parse and decrypt > the mac address from: > > > "The following is an example of the string representation of a UUID: > f81d4fae-7d

Re: PATCH porting.pod "First Mystery"

2003-09-03 Thread Stas Bekman
[...] In effect you use local() to undef the variable, instead of explicitly initializing it. Why not doing this explictly? Firstly it's conceptually neater to use local. I want to think of the variable as local rather than as a global variable that needs to be explicitly reset. local is perl4-i

Apache::Test fails make test on Debian

2003-09-03 Thread Jens Porup
Greetings all, When I try to install Apache::Test on my Debian-based Libranet Linux system, make test fails as below. I have searched the archives--correctly, I hope!--but nothing has turned up. speculation--does this have something to do with Debian calling apache /usr/sbin/apache, as opposed

Re: PATCH porting.pod "First Mystery"

2003-09-03 Thread Perrin Harkins
On Wed, 2003-09-03 at 21:24, Stas Bekman wrote: > [...] > >>In effect you use local() to undef the variable, instead of explicitly > >>initializing it. Why not doing this explictly? > > > > > > Firstly it's conceptually neater to use local. I want to think of the > > variable as local rather tha

Re: Process exiting prematurely

2003-09-03 Thread Randy Kobes
On Wed, 3 Sep 2003, Stas Bekman wrote: > Flowers, Jay wrote: > > > > Do you get this behavior with some particular script or > > just any kind? Does the same script work fine as > > mod_cgi? > > > > All scripts, work the same. They work fine under mod_cgi. > > Do normal handlers behave the same w

Re: PATCH porting.pod "First Mystery"

2003-09-03 Thread Stas Bekman
Perrin Harkins wrote: To summarize: - move the perl4 lib solution to the perl_reference.pod - suggest replacing my() with our() to avoid the closure, however this change requires that the variables will be initialized before used in most cases (example of 'open our $foo' which doesn't need to b

Re: Apache::Test fails make test on Debian

2003-09-03 Thread Stas Bekman
Jens Porup wrote: Greetings all, When I try to install Apache::Test on my Debian-based Libranet Linux system, make test fails as below. I have searched the archives--correctly, I hope!--but nothing has turned up. speculation--does this have something to do with Debian calling apache /usr/sbin/ap