Re: Apache2/MP2 Segfaults when loading Text::Textile

2006-03-22 Thread Christopher H. Laco
Christopher H. Laco wrote: > I'm working on a site running under Catalyst under ModPerl > 2.0.2/Apache2.0.55. > > As soon as I tried loading Text::Textile in any way, apache segfaults, > even when just doing apachectl configtest. > > Text::Textile is a pure perl module, and uses Exporter. Nothing

Apache2/MP2 Segfaults when loading Text::Textile

2006-03-22 Thread Christopher H. Laco
I'm working on a site running under Catalyst under ModPerl 2.0.2/Apache2.0.55. As soon as I tried loading Text::Textile in any way, apache segfaults, even when just doing apachectl configtest. Text::Textile is a pure perl module, and uses Exporter. Nothing special. I started rebuilding a copy of

howto streamline warnings

2006-03-22 Thread Andreas J. Koenig
What is the recommended way to configure mod_perl's behaviour on warn()? Is there a configurable connection between Apache::Log and CORE::warn() or do I write a global $SIG{__WARN__}? Background: we have already plenty of handlers that all usually use perl's warn to write their diagnostics to err

Timeout errors on upload cancel with proxy

2006-03-22 Thread Boysenberry Payne
I remember reading about handling when a client cancels an upload via proxy connections, I just don't remember what or where. I'm using: my $req = Apache2::Request->new( $r ); # via handler my $upload = $req->upload( "uploadFile" ) or return $self->error( "No Upload File Found..." ); my $file =

Re: [Announce] Apache2::TomKit 0.01_3 released

2006-03-22 Thread Tom Schindl
And because the test-suite failed on all computers except mine there is TomKit-0.01_4 available on your nearest CPAN mirror within the next hours where all test should be passed. Tom Tom Schindl wrote: > Hi, > > Finally I spent some time releasing a new version of TomKit to CPAN. > > -

Where from does Apache-Test get the servername used

2006-03-22 Thread Tom Schindl
Hi, how does Apache-Test retrieves the servername inserted into httpd.conf is it possible to access this value while running tests? Tom signature.asc Description: OpenPGP digital signature

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Tom Schindl
So I propose the following documentation patch many people may not grasp that they need to look into the sources to find out that their filter will always return HTTP-Status OK to their clients although they return SERVER_ERROR ;-) Tom Geoffrey Young wrote: > > Tom Schindl wrote: > >>Hi, >> >>s

Re: PerlIOBase_binmode ... again ?

2006-03-22 Thread Matt Richards
hello :) its ok now i found out that libperl.a contained this PerlIO_binmode and the libperl.a that i had was the wrong version so i just a config make and make install in the perl sources and now its working fine :) Cheers anyway, Matt. > Matt Richards wrote: >> Hello, >> >> I know this questio

Petal & ModPerl - PreCaching

2006-03-22 Thread Jonathan Vanasco
I submitted a patch a few weeks ago that should be in the next upgrade to petal, though I don't know when that will be . I should have cc'd this list when i did. Some of you might find it useful - its a quick & dirty hack that will let you pre-cache petal templates during startup.pl it

Re: PerlIOBase_binmode ... again ?

2006-03-22 Thread Philip M. Gollucci
Matt Richards wrote: Hello, I know this question has been asked before because i have read mailing list archives about it but for some reason there never seems to be an answer ! when i do a make test on mod_perl i get the following output ... undefined symbol: PerlIOBase_binmode Did you compi

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Tom Schindl
Well I figured out that the test I was running was on an old version of mod_perl. I'll give it a try on the 2.0.2-release as fast as possible from the code it looks like 2.0.2 doesn't return OK in this situation. Tom Tom Schindl wrote: > Geoffrey Young wrote: > >>Tom Schindl wrote: >> >> >>>Hi,

Re: external redirect after internal redirect not working

2006-03-22 Thread Geoffrey Young
Tom Schindl wrote: > Hi Geoff, > > Geoffrey Young wrote: > >>Tom Schindl wrote: >> >> >>>This means the when the documentation holds information about situation >>>where one has to use $r->status(), I would propose that in should add >>>the use case of filters. >>> >>>This has nothing TODO with

Re: external redirect after internal redirect not working

2006-03-22 Thread Jonathan Vanasco
On Mar 22, 2006, at 2:49 PM, Michael Greenish wrote: It's been a while since I set up the server but I think I did it because setting up the apache config file was easier. And the redirect works under normal circumstances, but not when coming from an internal redirect. What is the difference?

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Tom Schindl
Geoffrey Young wrote: > > Tom Schindl wrote: > >>Hi, >> >>solved it myself $f->r->status() how stupid I haven't seen this before, >>works like a charme but one more question, what is a filter supposed to >>return on ERROR why does one have to set the status one self and return >>Apache2::Const::S

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
Hi Geoff, Geoffrey Young wrote: > > Tom Schindl wrote: > >>This means the when the documentation holds information about situation >>where one has to use $r->status(), I would propose that in should add >>the use case of filters. >> >>This has nothing TODO with your problem I only wanted to poin

Re: Setting HTTP-STATUS and Filters

2006-03-22 Thread Geoffrey Young
Tom Schindl wrote: > Hi, > > solved it myself $f->r->status() how stupid I haven't seen this before, > works like a charme but one more question, what is a filter supposed to > return on ERROR why does one have to set the status one self and return > Apache2::Const::SERVER_ERROR from the filter

Re: external redirect after internal redirect not working

2006-03-22 Thread Geoffrey Young
Tom Schindl wrote: > This means the when the documentation holds information about situation > where one has to use $r->status(), I would propose that in should add > the use case of filters. > > This has nothing TODO with your problem I only wanted to point out that > not all cases where settin

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
> > It's been a while since I set up the server but I > think I did it because setting up the apache config > file was easier. And the redirect works under normal What's the big deal, in my idea Registry is only helpful if you want to speed up your CGI-Scripts not for new development and many ti

Re: external redirect after internal redirect not working

2006-03-22 Thread Michael Greenish
> Why are you running this as a registry script? You > are referencing so > many things only available in mod_perl that you > could simply wrap > your whole code inside "sub handler { }" and you > don't have to set > $r->status() manually which may be the problem. > > Tom > It's been a while

PerlIOBase_binmode ... again ?

2006-03-22 Thread Matt Richards
Hello, I know this question has been asked before because i have read mailing list archives about it but for some reason there never seems to be an answer ! when i do a make test on mod_perl i get the following output ... undefined symbol: PerlIOBase_binmode I have had this problem before and s

[Fwd: ApacheCon Europe 2006 Call for Papers Ends March 27]

2006-03-22 Thread Perrin Harkins
The deadline for submissions to ApacheCon Europe is approaching. This is a fun and informative conference, and I encourage people on the list to consider submitting mod_perl-related talks to it. - Perrin --- Begin Message --- The Call for Papers for ApacheCon Europe 2006 is still open but will en

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
This means the when the documentation holds information about situation where one has to use $r->status(), I would propose that in should add the use case of filters. This has nothing TODO with your problem I only wanted to point out that not all cases where setting $r->status manually are documen

Re: external redirect after internal redirect not working

2006-03-22 Thread Michael Greenish
I am working in modperl::registry (not writing my own handlers) and I found this recipe on the modperl website: http://perl.apache.org/docs/2.0/user/coding/cooking.html#Sending_Cookies_in_REDIRECT_Response__ModPerl__Registry_ And, sorry Tom, but I don't understand your response. thanks, grean

Re: external redirect after internal redirect not working

2006-03-22 Thread Tom Schindl
Fred Moyer wrote: > Michael Greenish wrote: >> use strict; > [..] > >> # redirect >> $r->headers_out->set( Location => $redirectURL ); >> $r->status( REDIRECT ); > >> return REDIRECT; > > I see a few things here that catch my eye but what stands out the most > is the use of the same return code

Re: external redirect after internal redirect not working

2006-03-22 Thread Fred Moyer
Michael Greenish wrote: > use strict; [..] # redirect $r->headers_out->set( Location => $redirectURL ); $r->status( REDIRECT ); > return REDIRECT; I see a few things here that catch my eye but what stands out the most is the use of the same return code for the browser and apache. why are you