Re: berkeleyDB tie once and forever with mod_perl

2007-07-19 Thread Perrin Harkins
On 7/19/07, Nils Kaiser <[EMAIL PROTECTED]> wrote: I was able to change our code to have the handlers called by the Apache server (PerlResponseHandler, PerlChildInitHandler, PerlChildExitHandler). What I don't understand, is in which scope/object I store the reference to the BerkeleyDB in the ini

Re: berkeleyDB tie once and forever with mod_perl

2007-07-19 Thread Nils Kaiser
x27;ve put a few here and on perlmonks.org. I can imagine how to tie on startup, but how to trigger the code for untie at shutdown? Is untie needed at all with berkeleyDB? Yes, do the untie to flush buffers to disk. The appropriate place to do this is the PerlChildInitHandler and PerlChildExitHa

Re: berkeleyDB tie once and forever with mod_perl

2007-07-13 Thread Jonathan Vanasco
On Jul 13, 2007, at 9:48 AM, Perrin Harkins wrote: On 7/13/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: I'm thinking of the situation where you have 1 parent, 4 children. all 4 children hit max-requests and exit before the first replacement spawns. without a standing connection in the pare

Re: berkeleyDB tie once and forever with mod_perl

2007-07-13 Thread Perrin Harkins
On 7/13/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: I'm thinking of the situation where you have 1 parent, 4 children. all 4 children hit max-requests and exit before the first replacement spawns. without a standing connection in the parent (or another process using bdb in any way ) wouldn't

Re: berkeleyDB tie once and forever with mod_perl

2007-07-13 Thread Jonathan Vanasco
First off- thank you perrin , i'm a step closer to fully understanding this. On Jul 12, 2007, at 9:14 PM, Perrin Harkins wrote: No. This is explicit shared memory, not a mysterious copy-on-write thing. You need to initiate access separately from each process so that none of the XS stuff

Re: berkeleyDB tie once and forever with mod_perl

2007-07-12 Thread Perrin Harkins
On 7/12/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: a) the tie be global pre-fork b) the tie be post-fork c) there be no tie whatsoever , and somehow a connection is made using the API at the beginning , and everything just uses the library/ api methods ~

Re: berkeleyDB tie once and forever with mod_perl

2007-07-12 Thread Jonathan Vanasco
Could you elaborate on this? I'm a bit unclear: are you suggesting a) the tie be global pre-fork b) the tie be post-fork c) there be no tie whatsoever , and somehow a connection is made using the API at the beginning , and everything just uses the library/ api me

Re: berkeleyDB tie once and forever with mod_perl

2007-07-12 Thread Perrin Harkins
On 7/12/07, Nils Kaiser <[EMAIL PROTECTED]> wrote: To achieve full performance, I read that it better to tie the berkeleyDB once and reuse the handle for each request, i.e. having the tie command outside of the mod_perl handler. Yes. If you really are concerned with performance, don

berkeleyDB tie once and forever with mod_perl

2007-07-12 Thread Nils Kaiser
Hello, in a former post, I was investigating the use of berkeleyDB and mod_perl to cache calls to a web service. We now have a running prototype. To achieve full performance, I read that it better to tie the berkeleyDB once and reuse the handle for each request, i.e. having the tie command

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Jonathan Vanasco
On May 25, 2007, at 11:59 PM, Perrin Harkins wrote: I've used the approach described here to debug hanging problems with CGI.pm uploads: http://modperlbook.org/html/ch21_07.html The signal handler that tells you what line it's stuck on is pretty handy. Bookmarked. awesome. It turns out t

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Perrin Harkins
On 5/25/07, Jonathan Vanasco <[EMAIL PROTECTED]> wrote: does anyone have a suggestion on what I can do ? I've used the approach described here to debug hanging problems with CGI.pm uploads: http://modperlbook.org/html/ch21_07.html The signal handler that tells you what line it's stuck on is p

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Jonathan Vanasco
On May 25, 2007, at 10:08 PM, Joe Schaefer wrote: Try experimenting with using/not-using $r->discard_request_body before sending your output. Thanks Joe! That helps a bit , but creates a new problem: I think what happens is this: without discard_request_body : web application imme

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Joe Schaefer
Jonathan Vanasco <[EMAIL PROTECTED]> writes: > I've been fighting this for 24 hours now, still no clue. Try experimenting with using/not-using $r->discard_request_body before sending your output. -- Joe Schaefer

Re: apreq overlimit requests tie up modperl

2007-05-25 Thread Jonathan Vanasco
I've been fighting this for 24 hours now, still no clue. The system doesn't give a bus error / segfault every time Exploring with curl and taling my apache log with some info printed to stderr, i've noticed this: Curl: I get the expected result ( the server prints the browser message "y

apreq overlimit requests tie up modperl

2007-05-24 Thread Jonathan Vanasco
I'm having an issue with libapreq overlimit issues: if i set the limit to 200k and post a 250k file, the following expected things happen: • I can catch the apreq error my $apr_error= $self->ApacheRequest->body_status(); if ( $apr_error eq 'Exceeds c

[ANNOUNCE] Tie-DxHash v1.02 released

2006-12-12 Thread Kevin Ruscoe
All Tie-DxHash is intended to permit the use of more elaborate rewrite rules in Apache configuration files written with Perl Sections. I recently released a new version of Tie-DxHash. This release fixes a bug in the NEXTKEY method that was highlighted when using any function which resets

RE: TIE

2006-02-23 Thread Mark Galbreath
yeah, my wife gets a little defiant when I try to tie her   seriously, this is good stuff!  And thanks to Jonathon for the perlmonks.org resource!  New one for me.   mark>>> Chris Werner <[EMAIL PROTECTED]> 23-Feb-06 10:45:13 AM >>> The other DBM db's:  ND

Re: TIE

2006-02-23 Thread Jonathan
Most of these non- mod-perl centric questions can be answered faster with a lookup on perlmonks.org oddly though, this list is bouncing today. anyways, a quick search on gdbm on perlmonks likes to this node: http://perlmonks.org/?node_id=405754 which links to this page from the camel

Re: TIE

2006-02-23 Thread Ronald J Kimball
On Thu, Feb 23, 2006 at 10:27:35AM -0500, Mark Galbreath wrote: > looks way cool - thx Chris. Does libgdbm come with perl distros? I > notice the man page is already on my RH Enterprise 4 client. The reason > I ask is that it is very painful to get the government to change anything > on a server

RE: TIE

2006-02-23 Thread Chris Werner
ECTED]Sent: Thursday, February 23, 2006 9:28 AMTo: modperl@perl.apache.org; [EMAIL PROTECTED]Subject: RE: TIE looks way cool - thx Chris.  Does libgdbm come with perl distros?  I notice the man page is already on my RH Enterprise 4 client.  The reason I ask is that it is very painful

RE: TIE

2006-02-23 Thread Mark Galbreath
stuff like this before 2010.  :-)   mark>>> Chris Werner <[EMAIL PROTECTED]> 23-Feb-06 09:34:43 AM >>> man GDBM_File -Original Message-From: Mark Galbreath [mailto:[EMAIL PROTECTED]Sent: Thursday, February 23, 2006 7:08 AMTo: modperl@perl.apache.orgSubject: TIE I must

RE: TIE

2006-02-23 Thread Chris Werner
man GDBM_File -Original Message-From: Mark Galbreath [mailto:[EMAIL PROTECTED]Sent: Thursday, February 23, 2006 7:08 AMTo: modperl@perl.apache.orgSubject: TIE I must be missing the point.  In the 3rd edition of the Camel Book, there is a passing reference in Chapter

TIE

2006-02-23 Thread Mark Galbreath
I must be missing the point.  In the 3rd edition of the Camel Book, there is a passing reference in Chapter 14 that goes something like       You used to have to use dbmopen() but now you can use tie.   I am picking perl back up after 10 years and dbmopen() always worked great for me.  I don&#

[Fwd: [perl #27986] IPC::Open3 fails in mod_perl (tie bug)]

2005-04-12 Thread Stas Bekman
nks a lot! Original Message Subject: [perl #27986] IPC::Open3 fails in mod_perl (tie bug) Date: 12 Apr 2005 11:31:57 - From: Steve Peters via RT <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: OtherRecipients of perl Ticket #27986: ; CC: perl5-porters@perl.org [nic

Re: Problem using tie with Apache::RequestRec in mod_perl/1.999.21

2005-02-03 Thread J Matisse Enzer
what the older version of OLE::Storage_Lite was doing wrong. :-( -Matisse On Feb 2, 2005, at 5:21 PM, Stas Bekman wrote: J Matisse Enzer wrote: I am using a module that wants to tie to the Apache::RequestRec The following code works in mod_perl/1.99_12 but does not seem to work in mod_perl/1.999.21

Re: Problem using tie with Apache::RequestRec in mod_perl/1.999.21

2005-02-02 Thread Stas Bekman
J Matisse Enzer wrote: I am using a module that wants to tie to the Apache::RequestRec The following code works in mod_perl/1.99_12 but does not seem to work in mod_perl/1.999.21 - I simply get no output (no errors either): tie *FILE => $r; binmode(*FILE); Server info: Apa

Problem using tie with Apache::RequestRec in mod_perl/1.999.21

2005-02-02 Thread J Matisse Enzer
I am using a module that wants to tie to the Apache::RequestRec The following code works in mod_perl/1.99_12 but does not seem to work in mod_perl/1.999.21 - I simply get no output (no errors either): tie *FILE => $r; binmode(*FILE); Server info: Apache/2.0.52 (Unix) mod_

Trouble using Tie::RDBM

2005-02-02 Thread Henrik Steffen
Hello, I wonder if someone could possible help me with an issue regarding Tie::RDBM. I am using it on a mod_perl 2.0 enabled website with apache 2.0.51 with persistent database connections to a postgresql-backend. Everything works fine, but every once in a while there will be an error in the