Re: Alternatives to Apache::DBI?

2009-10-03 Thread David E. Wheeler
On Oct 3, 2009, at 2:00 PM, Perrin Harkins wrote: I realized, reading this, that I should check for the Apache startup and not cache things if it's during startup. That's useful under mod_perl, and won't hurt anything elsewhere. I'll get that committed this weekend. That should work. Or y

Re: Alternatives to Apache::DBI?

2009-10-03 Thread Perrin Harkins
On Sat, Oct 3, 2009 at 4:56 PM, David E. Wheeler wrote: > I realized, reading this, that I should check for the Apache startup and not > cache things if it's during startup. That's useful under mod_perl, and won't > hurt anything elsewhere. I'll get that committed this weekend. That should work.

Re: Alternatives to Apache::DBI?

2009-10-03 Thread David E. Wheeler
On Oct 3, 2009, at 5:25 AM, Perrin Harkins wrote: It's safe to create a connection on startup with DBIx::Connection though, as it is careful not to cache across fork or thread boundaries. It may be necessary to set InactiveDestroy on any handles you open during startup, even if you avoid ev

Re: Threading inside a handler script

2009-10-03 Thread Torsten Foertsch
On Sat 03 Oct 2009, Elizabeth Mattijsen wrote: > > I believe what you're doing should work, but I don't use threads > > for anything.  I'd probably fork and put the results in a database > > table or file. > > If you like the threads API, you might want to take a look at the   > "forks" module on C

Re: Threading inside a handler script

2009-10-03 Thread Elizabeth Mattijsen
On Oct 3, 2009, at 2:32 PM, Perrin Harkins wrote: On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste wrote: Well, obviously this doesn't work and I end up getting "child pid X exit signal Segmentation fault (11)" type errors. Is my aproach completely wrong? What would be the right way to solve th

Re: [MP2][SESSION::POSTGRES] Problems retrieving session data.

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 2:58 AM, Sam Ingarfield wrote: > For example, let user A have a session associated with him. He has the > string 'cow' in $session{animal}. User B, meanwhile, has 'goose' in > $session{animal}. Now, intermittently, user A is getting 'goose' when > retrieving $session{animal}

Re: Threading inside a handler script

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 9:34 AM, Aku Kauste wrote: > Well, obviously this doesn't work and I end up getting "child pid > X exit signal Segmentation fault (11)" type errors. > > Is my aproach completely wrong? What would be the right way to solve > this kind of a problem? I believe what you're

Re: Alternatives to Apache::DBI?

2009-10-03 Thread Perrin Harkins
On Fri, Oct 2, 2009 at 10:40 PM, David E. Wheeler wrote: > It's safe to create a connection on > startup with DBIx::Connection though, as it is careful not to cache across > fork or thread boundaries. It may be necessary to set InactiveDestroy on any handles you open during startup, even if you a