Re: how to detect if current connection is https?

2014-06-12 Thread Louis-David Mitterrand
On Thu, Jun 12, 2014 at 11:50:45AM +0200, Torsten Förtsch wrote: > On 12/06/14 11:41, Louis-David Mitterrand wrote: > > I found Apache2::ModSSL which adds $c->is_https but it seems old and not > > packaged for debian. > > I am the author of said module. I haven

how to detect if current connection is https?

2014-06-12 Thread Louis-David Mitterrand
Hi, What is the canonical way of testing if the current request is https (ssl)? I found Apache2::ModSSL which adds $c->is_https but it seems old and not packaged for debian. Thanks,

cleanup_register(..) works but not push_handlers(PerlCleanupHandler ..)

2010-08-11 Thread Louis-David Mitterrand
Hi, Using modperl 2.0.4 and HTML::Mason I noticed the following problem: $r->push_handlers(PerlCleanupHandler => sub {...}) is not executed, however: $r->pool->cleanup_register({}, $arg) works fine. In both cases I use: $r->connection()->keepalive(Apache2::Con

decline and fall of modperl?

2009-03-23 Thread Louis-David Mitterrand
Hi and sorry for the provocative title of my post :) One of our customers is doing a detailed review of a mason/modperl ERP app we've built for them since 2001. Prodded by some buzzword-compliant consultants they are expressing concerns that the app's underlying technologies - perl, modperl and ma

Re: strange mod_deflate behaviour on binary output

2009-03-23 Thread Louis-David Mitterrand
On Sun, Mar 22, 2009 at 09:23:49PM -0400, Philippe M. Chiasson wrote: > On 22/3/09 15:25, Louis-David Mitterrand wrote: > > Hi, > > > > I noticed something interesting with mod_deflate when serving binary > > content from a mason component: > > > &g

strange mod_deflate behaviour on binary output

2009-03-22 Thread Louis-David Mitterrand
Hi, I noticed something interesting with mod_deflate when serving binary content from a mason component: <%init> $m->clear_buffer(); $r->content_type("video/mp4"); $r->headers_out->add('Content-length' => -s $file); $r->sendfile($file); $m->abort(20

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-20 Thread Louis-David Mitterrand
On Mon, May 19, 2008 at 09:33:49PM +0300, Niko Tyni wrote: > On Mon, May 19, 2008 at 11:12:08AM +0200, Louis-David Mitterrand wrote: > > > Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a > > segfault when using MasonX::Request::WithApacheSession: &

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Louis-David Mitterrand
On Mon, May 19, 2008 at 07:32:18AM -0700, Fred Moyer wrote: > Louis-David Mitterrand wrote: >> [this message elicited no answers so far from mason-users, so maybe the >> modperl community might be of help, thanks] >> >> Hi, >> >> Since I've upgraded to p

Re: segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Louis-David Mitterrand
On Mon, May 19, 2008 at 10:31:06AM -0400, Perrin Harkins wrote: > On Mon, May 19, 2008 at 5:12 AM, Louis-David Mitterrand > >## When commented out perl 5.10 works fine > >request_class => > > 'Mason

segfault with perl 5.10 + MasonX::Request::WithApacheSession

2008-05-19 Thread Louis-David Mitterrand
[this message elicited no answers so far from mason-users, so maybe the modperl community might be of help, thanks] Hi, Since I've upgraded to perl 5.10 on my debian unstable/sid box I get a segfault when using MasonX::Request::WithApacheSession: [Sat May 17 16:14:55 2008] [notice] Apac

Re: page finishes loading _after_ PerlCleanupHandler

2008-01-05 Thread Louis-David Mitterrand
On Sat, Jan 05, 2008 at 12:21:07PM -0800, Kate Yoak wrote: > > > Hi, while testing the PerlCleanupHandler in HTML::Mason: > > > > <%init> > > $r->push_handlers(PerlCleanupHandler => \&sleeptest); > > > > sub sleeptest { > > my $r = shift; > > $r->warn("BEFORE SLEEP"); > > sleep(10);

page finishes loading _after_ PerlCleanupHandler

2008-01-05 Thread Louis-David Mitterrand
Hi, while testing the PerlCleanupHandler in HTML::Mason: <%init> $r->push_handlers(PerlCleanupHandler => \&sleeptest); sub sleeptest { my $r = shift; $r->warn("BEFORE SLEEP"); sleep(10); $r->warn("AFTER SLEEP"); }; I've noticed that the page only finishes loading after the P