Re: Apache::Session and DB_File problems

2004-03-08 Thread Perrin Harkins
On Mon, 2004-03-08 at 13:44, Chris Ochs wrote: > sub handler { > $r = shift; > untie %session; %session is a global then? That explains why you have trouble when the script dies. I'd suggest switching to using $r->pnotes() for storing it. Alternatively, you could use a cleanup h

Re: Apache::Session and DB_File problems

2004-03-08 Thread Chris Ochs
- Original Message - From: "Perrin Harkins" <[EMAIL PROTECTED]> To: "Chris Ochs" <[EMAIL PROTECTED]> Cc: "Modperl List" <[EMAIL PROTECTED]> Sent: Monday, March 08, 2004 6:27 AM Subject: Re: Apache::Session and DB_File problems > On S

Re: Apache::Session and DB_File problems

2004-03-08 Thread Jeffrey W. Baker
On Sun, 2004-03-07 at 13:34, Perrin Harkins wrote: > Jeffrey W. Baker wrote: > > I wasn't aware of these issues before. Looks like I'll have to use > > BerkeleyDB or Tie::DB_Lock or something. > > On closer inspection I think it's mostly okay because the session object > is supposed to go out of

Re: Apache::Session and DB_File problems

2004-03-08 Thread Perrin Harkins
On Sun, 2004-03-07 at 21:13, Chris Ochs wrote: > Been doing some more testing on this. Previously I was untying the > sessions when the handler was finished. But it seems that all it takes is > just one child to exit uncleanly where I cant' catch the error and untie the > sesssions, and that's a

Re: Apache::Session and DB_File problems

2004-03-07 Thread Chris Ochs
> > On closer inspection I think it's mostly okay because the session object > is supposed to go out of scope and get destroyed (and thus untie) after > every interaction, and the locking should mean that only process is > writing during that time. You could run into trouble though if a > process

Re: Apache::Session and DB_File problems

2004-03-07 Thread Perrin Harkins
Jeffrey W. Baker wrote: I wasn't aware of these issues before. Looks like I'll have to use BerkeleyDB or Tie::DB_Lock or something. On closer inspection I think it's mostly okay because the session object is supposed to go out of scope and get destroyed (and thus untie) after every interaction,

Re: Apache::Session and DB_File problems

2004-03-07 Thread Jeffrey W. Baker
On Sun, 2004-03-07 at 09:31, Perrin Harkins wrote: > Chris Ochs wrote: > > This must be my day... I am stress testing a new application that uses > > apache::session with the DB_File backend store. When hitting it with apache > > bench after a few hundred connections something with the db file g

Re: Apache::Session and DB_File problems

2004-03-07 Thread Ged Haywood
Hi there, On Sat, 6 Mar 2004, Chris Ochs wrote: > stress testing a new application that uses apache::session with the > DB_File backend store. When hitting it with apache bench after a > few hundred connections something with the db file gets wacked, and > apache starts to segfault until I delet

Re: Apache::Session and DB_File problems

2004-03-07 Thread Perrin Harkins
Chris Ochs wrote: This must be my day... I am stress testing a new application that uses apache::session with the DB_File backend store. When hitting it with apache bench after a few hundred connections something with the db file gets wacked, and apache starts to segfault until I delete the .db

Apache::Session and DB_File problems

2004-03-06 Thread Chris Ochs
This must be my day... I am stress testing a new application that uses apache::session with the DB_File backend store. When hitting it with apache bench after a few hundred connections something with the db file gets wacked, and apache starts to segfault until I delete the .db file, at which po