Re: Share perl variables between apache process

2008-09-24 Thread badman
Tnx for the replies For Michael, yes i know what it mean to have global variables (semaphores, ...) i was investigating this option because when i do call ...-new(); it reads a file to initiate its attribute. I would like to improve the performance not reading always the file For Ryan, i

Re: Apache::DBI 1.07 requires global $r - workaround?

2008-09-24 Thread Fred Moyer
Hi Brian, Bryan-Kirk Reinhardt wrote: Howdy: We're trying to get Apache::DBI 1.07 going, and we ran into this problem posted by Fred (which is re-published in various places as ): http://www.gossamer-threads.com/lists/modperl/dev/97744 It wasn't clear how you all worked around this as the

Re: Apache::DBI 1.07 requires global $r - workaround?

2008-09-24 Thread Perrin Harkins
On Wed, Sep 24, 2008 at 12:39 PM, Fred Moyer [EMAIL PROTECTED] wrote: I went ahead and use 1.06 in my production setup. If you want to use 1.07, you will need to include the GlobalRequest option in your config setup. It should be fine to use GlobalRequest. The warnings against it are

[libapreq2] Should there be two temp (spool) files?

2008-09-24 Thread Ryan Gies
When I post a multipart-form request I see two files being written in my temp directory: -rw--- 1 ryan users 8318656 2008-09-24 10:51 apreqK5Oiyc -rw--- 1 ryan users 8318484 2008-09-24 10:51 apreqQ1qs6C And: Apache2::Request-new($r)-upload('file')-tempname() indicates the spool

Re: [libapreq2] Should there be two temp (spool) files?

2008-09-24 Thread Joe Schaefer
--- On Wed, 9/24/08, Ryan Gies [EMAIL PROTECTED] wrote: When I post a multipart-form request I see two files being written in my temp directory: -rw--- 1 ryan users 8318656 2008-09-24 10:51 apreqK5Oiyc -rw--- 1 ryan users 8318484 2008-09-24 10:51 apreqQ1qs6C And:

Re: [libapreq2] Should there be two temp (spool) files?

2008-09-24 Thread Ryan Gies
On Wed, 24 Sep 2008 11:08:24 -0700 (PDT) Joe wrote: It's spooling the contents of the raw (unparsed) body. You can tell apreq not to do this by calling $r-discard_request_body in your handler after invoking Apache2::Request::new. When discarding the request body, I receive the error: End

Re: [libapreq2] Should there be two temp (spool) files?

2008-09-24 Thread Joe Schaefer
--- On Wed, 9/24/08, Ryan Gies [EMAIL PROTECTED] wrote: When discarding the request body, I receive the error: End of file found (which happens when APR_BUCKET_IS_EOS). I can see the spool file being written and *presume* the multi-part boundary is missing. In a

Apache2::AuthenNTLM working ok, but an error is still showing in the logs of the virtual server

2008-09-24 Thread Caron, Christian
Hi all, I installed Apache 2 (2.2.3-11.el5_1.3), mod_perl (2.0.2-6.3.el5) and Apache2::AuthenNTLM (0.02) on a Red Hat Linux server. Everything is working as expected (I'm getting logged in through NTLM), but a message is being written to the error log of the virtual site every time someone logs

Re: Share perl variables between apache process

2008-09-24 Thread Perrin Harkins
On Wed, Sep 24, 2008 at 3:08 AM, badman [EMAIL PROTECTED] wrote: For Michael, yes i know what it mean to have global variables (semaphores, ...) i was investigating this option because when i do call ...-new(); it reads a file to initiate its attribute. I would like to improve the performance

Re: [libapreq2] Should there be two temp (spool) files?

2008-09-24 Thread Ryan Gies
On Wed, 24 Sep 2008 12:07:23 -0700 (PDT) Joe wrote: 1) Apache2::Request-new() 2) $r-add_input_filter() 3) $r-discard_request_body() Why are you doing step 2? You shouldn't need to add an input filter for apreq to work. Step 2 is Apache2::UploadProgress::track_progress It's

Re: Apache::DBI 1.07 requires global $r - workaround?

2008-09-24 Thread adam . prime
1.07 is broken. PGOLLUCCI said it was going to get reverted, but apparently it hasn't happened. see http://rt.cpan.org/Public/Bug/Display.html?id=36346 Adam Quoting Perrin Harkins [EMAIL PROTECTED]: On Wed, Sep 24, 2008 at 12:39 PM, Fred Moyer [EMAIL PROTECTED] wrote: I went ahead and