Global question

2007-05-04 Thread Will Fould
Can lists and other global objects created at apache startup be altered as an *indirect* result of child processes (i.e. some type of semaphore/listener scheme?). Thanks

Re: Help with $r being corrupted

2007-05-04 Thread Jonathan Vanasco
On May 4, 2007, at 8:02 PM, Victor Danilchenko wrote: I am not sure if it's the same type of error, but the idea of recording the PID is a great one -- if it is the problem, then forcing the error-prone child to commit suicide might indeed be the answer. I will add it to the error reporti

Re: Help with $r being corrupted

2007-05-04 Thread Victor Danilchenko
I am not sure if it's the same type of error, but the idea of recording the PID is a great one -- if it is the problem, then forcing the error-prone child to commit suicide might indeed be the answer. I will add it to the error reporting. Adam Prime x443 wrote: I have encounter the same prob

Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Jonathan Vanasco
On May 4, 2007, at 7:49 PM, Victor Danilchenko wrote: Someone (you know who you are, thanks!) helped me off-list by pointing out that I should use HTTP status 301 with Location header instead. In retrospect, it should have been obvious that the behavior I desired is meaningless in the con

Re: Help with $r being corrupted

2007-05-04 Thread Victor Danilchenko
Perrin Harkins wrote: On 5/2/07, Victor Danilchenko <[EMAIL PROTECTED]> wrote: I suspect this is a Perl issue, as I have noticed that generally, funny things seem to occasionally happen with the symbol table (i.e. methods getting forgotten ever once in a while) in the perl code. I don

Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Victor Danilchenko
Someone (you know who you are, thanks!) helped me off-list by pointing out that I should use HTTP status 301 with Location header instead. In retrospect, it should have been obvious that the behavior I desired is meaningless in the context of Refresh header. D'oh. Victor Danilchenko wrote: P

Re: ENV

2007-05-04 Thread Dodger
Jonathan Vanasco wrote: Is there a way to get additional shell variables exported into ENV on startup ? // Jonathan Vanasco Yup. I do this: package Local::PrepSession; use DBI; my $sql = DBI->connect('DBI:mysql:apache','**','**'); use Apache2::RequestRec(); use Apache2::RequestIO

Re: Help with $r being corrupted

2007-05-04 Thread Perrin Harkins
On 5/2/07, Victor Danilchenko <[EMAIL PROTECTED]> wrote: I suspect this is a Perl issue, as I have noticed that generally, funny things seem to occasionally happen with the symbol table (i.e. methods getting forgotten ever once in a while) in the perl code. I don't think it's a general

RE: Help with $r being corrupted

2007-05-04 Thread Adam Prime x443
I have encounter the same problem (at least the same symptoms) thread here: http://marc.info/?l=apache-modperl&m=114226565622372&w=2 I have never been able to find a true solution, but it is very intermittent. I worked around it by doing this (which isn't really a solution at all, and in fact b

RE: r->content equivalent in Apache2

2007-05-04 Thread Adam Prime x443
http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__request.h tml#body $r->body in Apache2::Request (libapreq2) -Original Message- From: Carlos Ramirez [mailto:[EMAIL PROTECTED] Sent: Friday, May 04, 2007 3:00 AM To: modperl@perl.apache.org Subject: r->content equivalent in Ap

RE: Help with sending custom headers in mod_perl2

2007-05-04 Thread Kiran.Nadgir
Can someone tell me how to unsubscribe from this list..I haven't been able to unsubscribe. -Original Message- From: Victor Danilchenko [mailto:[EMAIL PROTECTED] Sent: Fri 5/4/2007 9:41 AM To: modperl@perl.apache.org Cc: Subject:Re: Help with sending custom headers in

Re: Help with sending custom headers in mod_perl2

2007-05-04 Thread Victor Danilchenko
Perrin Harkins wrote: On 5/2/07, Victor Danilchenko <[EMAIL PROTECTED]> wrote: I seem to be missing something very obvious... I have: $r->header_out("Refresh"=>"0; URL=$uri\n"); I think you're looking for this: $r->headers_out->add("Refresh"=>"0; URL=$uri\n"); Yup, that was

Re: Apache::Request question

2007-05-04 Thread Clinton Gormley
> Ok. that answers a ton. > > Word-for-word, that should be in the PerlGlue docs. > libapreq is great, but the docs are seriously lacking. I implemented my own wrapper for it, but it required a lot of delving into the Apache2/APR::Request code to figure out how to make it work. Non-trivial to