Re: bug: calling setlocale(LC_ALL,name of any locale with utf8 charset)more than once crashes httpd with mod_perl

2002-04-15 Thread Stas Bekman
Vlad Harchev wrote: When using the following script under mod_perl, each httpd process crashes on the 2nd request to execute this script. #!/usr/bin/perl use strict; use POSIX qw(locale_h); setlocale(LC_ALL,'en_US.utf8'); print Expires: 1 Jan 1970\nContent-Type:

Re: bug: calling setlocale(LC_ALL,name of any locale with utf8charset) more than once crashes httpd with mod_perl

2002-04-15 Thread Vlad Harchev
On Mon, 15 Apr 2002, Stas Bekman wrote: Unfortunately, I don't have time for compiling and installing it.. I hope somebody on this list who has already installed version of recent perl will test the problem.. Confirmed as working with bleadperl (i.e the latest perl-5.7.3) Also

Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread VML
Hi All, Our company planning to move from Perl/CGI to mod_perl. But when we test, mod_perl is slower than mod_cgi. I test with these script: # TESTING SCRIPT 1 use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); $t0 = [gettimeofday]; # CODE HERE

Re: Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread Stas Bekman
VML wrote: Hi All, Our company planning to move from Perl/CGI to mod_perl. But when we test, mod_perl is slower than mod_cgi. I test with these script: # TESTING SCRIPT 1 use Time::HiRes qw(usleep ualarm gettimeofday tv_interval); $t0 = [gettimeofday];

Re: Apache::ServerUtil pb in modperl2

2002-04-15 Thread Stas Bekman
pascal barbedor wrote: apache 2.0.35 / mod_perl 1.99_01 / winnt or win2k You don't say which perl version you are using. Please remember to run t/REPORT when sending bug reports. If this is 5.6.0 before we continue, first update to 5.6.1. 5.6.0 is very buggy. 5.6.1 is very stable. I

Re: How to report problems with modperl 2.0

2002-04-15 Thread Stas Bekman
Stas Bekman wrote: At this time some people will try to run incorrect versions of Apache and mod_perl and this will cause to most of your problems. So before we attempt to answer your questions, you have to tell us what versions you were using. Therefore: Whenever you have a problem,

Re: Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread Stas Bekman
[ whenever someone replies to your question on the list, please keep the replies CC'ed to the list, unless you were asked to make the thread private. don't be shy to continue solving your problem in public, other benefit from this as well.] VML wrote: On Monday 15 April 2002 02:49 pm, you

Kind-of PerlSections, and location question

2002-04-15 Thread Daniel W. Burke
I'm wondering if this is possible at all, and if so, how to accomplish it... We have an application we're serving by using the same set of source code, and setting up different Location sections in the virtual host to set different variables and path aliases based on who the customer is... But

mod_perl memory

2002-04-15 Thread dmitryus
Hi all. Anybody knows, how to view detailed memory usage information by perl modules. Such as Module1::$var1 - memory size Module1::$var2 - memory size I can't solve memory leak problem with my site :( Thank for help.

Re: mod_perl memory

2002-04-15 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi all. Anybody knows, how to view detailed memory usage information by perl modules. Such as Module1::$var1 - memory size Module1::$var2 - memory size I can't solve memory leak problem with my site :( Thank for help. Apache::Status

Re: Mod_perl slower than mod_cgi, Please Help!

2002-04-15 Thread Stas Bekman
VML wrote: On Monday 15 April 2002 04:35 pm, you wrote: VML wrote: On Monday 15 April 2002 02:49 pm, you wrote: Oh, boy, this is a wrong test :) You benchmark the code execution and not mod_perl against mod_cgi. You should use ab(8) or similar app for this. To learn how to properly do this

Re: Kind-of PerlSections, and location question

2002-04-15 Thread Steven Lembark
Have a databae table that stores the information for each setting, then load it dynamically as a request comes in... mailer dream code: $ENV{REQUEST_URI} =~ /^\/(.*?)\//; $base_path = $1; if (!exists($Location{$base_path})) { ... do database calls to load necessairy information

[OT] Re: htaccess

2002-04-15 Thread Ernest Lergon
Paul Williams wrote: - AuthUserFile /dev/null AuthGroupFile /dev/null RewriteEngine On RewriteCond %{HTTP_REFERER} !^http://www.myserver.com [NC] RewriteCond %{HTTP_REFERER} !^http://myserver.com [NC] RewriteRule /*

Re: Kind-of PerlSections, and location question

2002-04-15 Thread Daniel W. Burke
On Mon, 15 Apr 2002, Steven Lembark wrote: Have a databae table that stores the information for each setting, then load it dynamically as a request comes in... mailer dream code: $ENV{REQUEST_URI} =~ /^\/(.*?)\//; $base_path = $1; if (!exists($Location{$base_path})) { ... do

Re: Kind-of PerlSections, and location question

2002-04-15 Thread Geoffrey Young
what I'm hoping to be able to do should only have to load the settings once (the first time a request comes in for that location) for each process, so I'm not too concerned about database access.. The main question I need answered first is, is this even possible? IIRC, Jay Lawrence was

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
[EMAIL PROTECTED] wrote: How are you handling your sessions? I use Apache::Session::Postgres. I'm using AuthCookie. A customization of AuthCookieDBI to be specific. However, I also use Apache::Session. Basically, I authenticate with AuthCookie, then I pass the authenticated username

error compiling modperl2 debug

2002-04-15 Thread [EMAIL PROTECTED]
hi on my way to give a bug report on silver plate...without need to compute pointer arithmetics in head :) there is an error when compiling modperl 2 debug on NT i have perl version 5.6.1 build 629 from activestate i tried perl makefile.pl MP_INST_APACHE2=1 MP_AP_PREFIX=i:/apache2

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread gphat
It's #5 that's troublesome. I wasn't sure how I could expire the older session (since the session key that matters is sitting client side). I guess I could keep a table of invalidated session keys, and check against that every time in along with all the other checks going on in

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
I'm not sure I follow your session id problem. When I check a session, I ask the client for it's ID, then look the session up by ID. To 'expire' the session, I simply delete it from the session store (File or Postgres). The confusion is you aren't using sessions in the authentication

Re: [ANNOUNCE] Cache::Cache 1.0

2002-04-15 Thread DeWitt Clinton
On Sat, Apr 13, 2002 at 04:33:11PM +0200, Eric Cholet wrote: I'm seeing this problem when using Apache::SOAP, using Cache::Cache 0.99 or 1.0. Downgrading to Digest::MD5 2.12 indeed solves it. Hi -- I recently released version 1.01 of Cache::Cache to CPAN. This version uses Digest::SHA1 as a

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Perrin Harkins
Fran Fabrizio wrote: Unfortunately, there's some terminology muddling...AuthCookie calls it a session when it establishes that a user is a valid user and sets a cookie on their browser. Apache::Session considers a session a series of page hits from the same user. It assumes you've

Re: Kind-of PerlSections, and location question

2002-04-15 Thread Perrin Harkins
Daniel W. Burke wrote: We have an application we're serving by using the same set of source code, and setting up different Location sections in the virtual host to set different variables and path aliases based on who the customer is... ... What I'd like to do (if even possible!), is have

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
You would have to do the auth part yourself, as well as the actual cookie handling, or else hack AuthCookie to cooperate with Apache::Session. This is exactly what I've done. I've modified AuthCookieDBI to create an Apache::Session session as soon as it knows it has a valid user. Then if

Re: Apache::ServerUtil pb in modperl2

2002-04-15 Thread Randy Kobes
On Sat, 13 Apr 2002, pascal barbedor wrote: Does the following, or some variation, work? [ .. ] sub handler { my $r = shift; my $key = $r-dir_config-get('TEST'); $r-content_type('text/plain'); $r-print($key); Apache::OK; } yes it works perfectly well. but

[OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Tatsuhiko Miyagawa
Announcing new Apache module (written in C): mod_log_sqlite is an Apache logging module for sqlite database. It allows you to log your HTTP stats into sqlite, then you can do queries using sqlite's SQL feature (including subselects, views) to HTTP statistics.

Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Dominique Blas
Sorry, I've found the following bug in mod_perl 1.25 and Perl 5.6.1. Maybe was it already released but in case not here it is : perl -e ' $a=0.57; print sprintf(%03d, $a * 100)' prints 056 instead of 057 Same behaviour with $a=0,58 that prints 057. Of course it works for other values and

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Perrin Harkins
Tatsuhiko Miyagawa wrote: Announcing new Apache module (written in C): mod_log_sqlite is an Apache logging module for sqlite database. It allows you to log your HTTP stats into sqlite, then you can do queries using sqlite's SQL feature (including subselects, views) to HTTP statistics. The

RE: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Jeff
Forgive a mod_perl newbie for non mod_perl thinking, but this is (a simplified overview) of how I would approach this: request for any protected page - if no existing session data [so not authenticated] create new session remember target page in session redirect to login page

Re: Enforcing user logged in from only 1 browser?

2002-04-15 Thread Fran Fabrizio
Jeff wrote: Forgive a mod_perl newbie for non mod_perl thinking, but this is (a simplified overview) of how I would approach this: request for any protected page - if no existing session data [so not authenticated] create new session remember target page in session

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Matt Sergeant
On Mon, 15 Apr 2002, Perrin Harkins wrote: Tatsuhiko Miyagawa wrote: Announcing new Apache module (written in C): mod_log_sqlite is an Apache logging module for sqlite database. It allows you to log your HTTP stats into sqlite, then you can do queries using sqlite's SQL feature

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Tatsuhiko Miyagawa
At Mon, 15 Apr 2002 17:09:43 +0100 (BST), Matt Sergeant wrote: PS: Taso: you sent to [EMAIL PROTECTED], which Ask seems to have setup to redirect to the right address. Yep. I've made a mistake, which Ask kindly had outsmarted ;) -- Tatsuhiko Miyagawa [EMAIL PROTECTED]

Re: [OT] [ANNOUNCE] mod_log_sqlite

2002-04-15 Thread Tatsuhiko Miyagawa
At Mon, 15 Apr 2002 11:32:55 -0400, Perrin Harkins wrote: The SQLite FAQ seems to suggest that SQLite isn't very good at parallel read/write situations: http://www.hwaci.com/sw/sqlite/faq.html#q6 Have you seen any problems so far? Yep, that's what I'd expected to happen. Without

Re: mod_perl 1.99 (for Apache 2.0.35) building on W2K

2002-04-15 Thread Chuck Goehring
Pascal, Thanks, I needed some good news. Chuck - Original Message - From: pascal barbedor To: Chuck Goehring Cc: [EMAIL PROTECTED] Sent: Friday, April 12, 2002 11:41 PM Subject: Re: mod_perl 1.99 (for Apache 2.0.35) building on W2K Hi chuck for DBI

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Stas Bekman
Dominique Blas wrote: Sorry, I've found the following bug in mod_perl 1.25 and Perl 5.6.1. Maybe was it already released but in case not here it is : perl -e ' $a=0.57; print sprintf(%03d, $a * 100)' prints 056 instead of 057 Same behaviour with $a=0,58 that prints 057. Of

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Andy Lester
correct -269; that's because it's really more like -268.94315658 instead. Usually, the sprintf, printf, or the POSIX::floor and And in this case, that means: alester@flr4[~/play]$ more sprintf.pl #!/usr/bin/perl -w $a=0.57 * 100;

Re: Found a sprintf() bug inPerl 5.6.1 (and mod_perl)

2002-04-15 Thread Dominique Blas
Thank you for your explanation both of you. alester@flr4[~/play]$ perl sprintf.pl 056 56.9928946 ... In general, the chances that you've found a bug in the language or implementation that's been around as long and is as widely used as Perl 5.6 is preeetty small. I know

[ANNOUNCE Apache::AccessCookie-0.32] many new flavors

2002-04-15 Thread Peter Bi
This is the second public release of the access control module. You can download it from here: http://mod_perl.home.att.net/AccessCookie_0_32.tar Besides few minor corrections from version 0.31, this one adds several ticket issuing mechanisms and the interface to implement new issuer is becoming

Problem with Perl sections in httpd.conf, mod_perl 1.26

2002-04-15 Thread PinkFreud
I have a rather odd problem, one which I can only assume is a bug somewhere, due to how bizarre it is. I am attmempting to generate virtual host configs via mod_perl, using Perl sections in httpd.conf. Not all hosts will be using a /perl Alias, though, so I'm reading in an external config,

cvs commit: modperl/src/modules/perl perl_util.c

2002-04-15 Thread dougm
dougm 02/04/15 19:32:22 Modified:src/modules/perl perl_util.c Log: fix taint issue with bleedperl Revision ChangesPath 1.48 +1 -0 modperl/src/modules/perl/perl_util.c Index: perl_util.c