Re: apache:session and mod perl

2004-12-30 Thread Chris Ochs
> > I tried setting Lock to File instead of Null, but there is some sort > > of contention issue because after the first request all other requests > > hang like they are waiting for a lock to be release. > > This usually means you have a scoping bug in your code. If the session > object never go

Re: [summary] The Conflict of mp1 vs mp2 vs mp22 vs ... vs mpNN

2004-12-30 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: [...] > -- > Meanwhile I've found a solution proposed by Andreas 1.5 years ago, which > might work as a better workaround from all the ones proposed so far: > http://www.xray.mpe.mpg.de/mailin

recommendations

2004-12-30 Thread Octavian Rasnita
Hi, I want to configure a production server that uses mod_perl and I don't know what version to choose because I see that mod_perl 2 is not stable yet. What do you recommend, to install Apache 1.3 and mod_perl 1 and use it until mod_perl 2 will be stable enough, or do you think that mod_perl 2 can

Re: apache:session and mod perl

2004-12-30 Thread Chris Ochs
> > > I tried setting Lock to File instead of Null, but there is some sort > > of contention issue because after the first request all other requests > > hang like they are waiting for a lock to be release. > > This usually means you have a scoping bug in your code. If the session > object never

Re: [mp1] Linking confusion

2004-12-30 Thread William McKee
On Thu, Dec 30, 2004 at 07:32:19PM -0500, Stas Bekman wrote: > >Hmm, that's what I thought too and was creating a symlink from > >/usr/lib/libperl.so to the newly created one. I was still getting > >strange behavior though so moved them all out of /usr/lib. Seems a bit > >better now. > > If the ap

[summary] The Conflict of mp1 vs mp2 vs mp22 vs ... vs mpNN

2004-12-30 Thread Stas Bekman
I've summarized the discussions that have happened on modperl users and dev, and p5p lists. I think I've addressed all the raised questions and tried to provide extensive answers: http://perl.apache.org/docs/2.0/user/porting/porting.html#The_Conflict_of_mp1_vs_mp2_vs_mp22_vs_vs_mpNN If I've

Re: Problems with Apache::AuthenNTLM on Apache 2

2004-12-30 Thread Shannon Eric Peevey
Hess, Fraser wrote: Here is the log. 9599 is the transaction when I first call the web page in the browser. 9600 is when I try on log on when the realm is blank. 9601 is from when I successfully authenicate, using basic it seems. [9600] AuthenNTLM: protocol=NTLMSSP, type=3, [EMAIL PROTEC

Re: [mp1] Linking confusion

2004-12-30 Thread Stas Bekman
William McKee wrote: On Thu, Dec 30, 2004 at 07:00:36PM -0500, Stas Bekman wrote: I'm guessing that this goes for any libperl.so, e.g. libperl.so.5.6 or libperl.so.5.8. If so then it would explain the weird behavior that I've been getting when compiling mod_perl. Normally in addition to libperl.so.

Re: [mp1] Linking confusion

2004-12-30 Thread William McKee
On Thu, Dec 30, 2004 at 07:00:36PM -0500, Stas Bekman wrote: > >I'm guessing that this goes for any libperl.so, e.g. libperl.so.5.6 or > >libperl.so.5.8. If so then it would explain the weird behavior that I've > >been getting when compiling mod_perl. > > Normally in addition to libperl.so.5.8 the

Re: [mp1] Linking confusion

2004-12-30 Thread Stas Bekman
William McKee wrote: On Thu, Dec 30, 2004 at 05:57:07PM -0500, Stas Bekman wrote: As [2] explains you have more than one libperl.so and the wrong one gets loaded. libperl.so should *not* be in /usr/lib or any other globally seen loader path if you want to have more than one perl on the same syste

Re: [mp1] Linking confusion

2004-12-30 Thread William McKee
On Thu, Dec 30, 2004 at 05:57:07PM -0500, Stas Bekman wrote: > As [2] explains you have more than one libperl.so and the wrong one gets > loaded. libperl.so should *not* be in /usr/lib or any other globally seen > loader path if you want to have more than one perl on the same system. > Unfortuna

Re: $0 ?

2004-12-30 Thread Stas Bekman
Torsten Foertsch wrote: On Friday 29 October 2004 22:13, Stas Bekman wrote: Torsten Förtsch wrote: On Friday 29 October 2004 20:17, Stas Bekman wrote: perl allows to modify $0. Then top, ps & co would display the new process title. Can the process title of a mod_perl modified apache be set this way

Re: [mp1] Linking confusion

2004-12-30 Thread Stas Bekman
William McKee wrote: Hi folks, I'm trying to recompile Perl and Apache/mod_perl on a Debian Sarge system using the following versions: Perl 5.8.6 Apache 1.3.33 mod_perl 1.29 I am compiling mod_perl statically (using Apachetoolbox) with the following options: APACHE_PREFIX=/usr/local/apache

Re: Some tests failed: mod_perl-2.0.0-RC2-XMas on FC3

2004-12-30 Thread Patrick LeBoutillier
My bad :(... All tests run fine now. Sorry, Patrick - Original Message - > Patrick LeBoutillier wrote: >> Stas, >> >> Maybe you read a bit too quickly... :) >> >> I saw someone having similar errors with Apache 2.1.x, but I'm running >> >> 2.0.52. > > Doh, my apologies: ETOOMANYEMA

Re: apache:session and mod perl

2004-12-30 Thread Perrin Harkins
Chris Ochs said: > I have found three things that need to be worked around like this in > order to use this approach. One is frames like you said, the other is > not pulling in stylesheets via an href, and the other is making sure > images are not loaded through mod perl. If I do all of that I d

Re: apache:session and mod perl

2004-12-30 Thread Chris Ochs
> So you have a lost update problem. There is probably a way to structure > things to avoid this (maybe not using sessions for it), but some form of > mutually exclusive locking would fix it, at the expense of making your > site slower, since each frame will have to wait for its turn. You might >

[mp1] Linking confusion

2004-12-30 Thread William McKee
Hi folks, I'm trying to recompile Perl and Apache/mod_perl on a Debian Sarge system using the following versions: Perl 5.8.6 Apache 1.3.33 mod_perl 1.29 I am compiling mod_perl statically (using Apachetoolbox) with the following options: APACHE_PREFIX=/usr/local/apache APACHE_SRC=/us

Re: Some tests failed: mod_perl-2.0.0-RC2-XMas on FC3

2004-12-30 Thread Stas Bekman
Patrick LeBoutillier wrote: Stas, Maybe you read a bit too quickly... :) I saw someone having similar errors with Apache 2.1.x, but I'm running 2.0.52. Doh, my apologies: ETOOMANYEMAILS Please submit a proper bug report: http://perl.apache.org/bugs/ in particular: http://perl.apache.org/docs/2.0/u

Re: Some tests failed: mod_perl-2.0.0-RC2-XMas on FC3

2004-12-30 Thread Patrick LeBoutillier
Stas, Maybe you read a bit too quickly... :) >> I saw someone having similar errors with Apache 2.1.x, but I'm running 2.0.52. All my setup is all stock Fedora Core 3 rpm's and up-to-date: perl-5.8.5-9 httpd-2.0.52-3.1 httpd-devel-2.0.52-3.1 apr-0.9.4-23 apr-devel-0.9.4-23 Cheers, Patrick

Re: apache:session and mod perl

2004-12-30 Thread Perrin Harkins
Chris Ochs said: > The issue I am having is that the postgresql store doesn't do any > locking It should. It uses "SELECT FOR UPDATE" which grabs an exclusive lock on the row in question until a commit is issued. A::S doesn't issue the commit, so you have to do that yourself. Have you been mess

Re: Some tests failed: mod_perl-2.0.0-RC2-XMas on FC3

2004-12-30 Thread Stas Bekman
Patrick LeBoutillier wrote: Hi all, I get the following test errors on a plain Fedora Core 3 install: Failed Test Stat Wstat Total Fail Failed List of Failed --- t/api/access2.t

Some tests failed: mod_perl-2.0.0-RC2-XMas on FC3

2004-12-30 Thread Patrick LeBoutillier
Hi all, I get the following test errors on a plain Fedora Core 3 install: Failed Test Stat Wstat Total Fail Failed List of Failed --- t/api/access2.t 63 50.00% 2 5-6

Re: mod_perl 1.99: sendfile returns empty document

2004-12-30 Thread Stas Bekman
Michael Heidel wrote: Hi List, we got a strange problem on Apache/2.0.52 (Unix) mod_perl/1.99_18 Perl/v5.8.5. $r->content_type('image/jpeg'); $r->sendfile($docname); returns an empty image (length: 0). it doesn't return anyhing but success code The jpg image $docname exists and is readable for ap

Re: $0 ?

2004-12-30 Thread Torsten Foertsch
On Friday 29 October 2004 22:13, Stas Bekman wrote: > Torsten Förtsch wrote: > > On Friday 29 October 2004 20:17, Stas Bekman wrote: > >>>perl allows to modify $0. Then top, ps & co would display the new > >>> process title. Can the process title of a mod_perl modified apache be > >>> set this way?

mod_perl 1.99: sendfile returns empty document

2004-12-30 Thread Michael Heidel
Hi List, we got a strange problem on Apache/2.0.52 (Unix) mod_perl/1.99_18 Perl/v5.8.5. $r->content_type('image/jpeg'); $r->sendfile($docname); returns an empty image (length: 0). The jpg image $docname exists and is readable for apache. Also error handling does not work: If we change $document t

Re: apache:session and mod perl

2004-12-30 Thread Chris Ochs
On Thu, 30 Dec 2004 10:00:32 +0200, Octavian Rasnita <[EMAIL PROTECTED]> wrote: > If this happens only in pages with frames, try creating a page without > frames. Umm no, I want a solution not a work around. This application is used by a lot of people on a lot of different sites with the file bac