Re: Future MPM Support?

2018-08-04 Thread Paul Silevitch
t; > On 30.07.2018 03:51, Paul B. Henson wrote: >> >> On Sun, Jul 29, 2018 at 04:18:54PM -0400, Paul Silevitch wrote: >> >>> Like Dr. James Smith, I'm hooking into multiple handlers and using >> filters. >> >> >> >> Yep, me too; Plack

Re: Future MPM Support?

2018-07-29 Thread Paul Silevitch
Like Dr. James Smith, I'm hooking into multiple handlers and using filters. I'm currently using prefork but thought people were using worker in production (assuming the application is thread safe). Is that not the case? Paul On Sat, Jun 9, 2018 at 7:03 AM, Dr James Smith wrote: > No - because o

Re: "SetEnv/SetEnvIf" and mod_perl

2015-10-02 Thread Paul Silevitch
subprocess_env method will let you get apache's env: http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_subprocess_env_ On Fri, Oct 2, 2015 at 6:24 PM, Michael A. Capone < mcap...@cablewholesale.com> wrote: > In my code, I do: > > > SetEnvIf Request_URI \.gif$ gif-image > Set

Re: no_cache(1)

2015-09-07 Thread Paul Silevitch
Weird. Try the following instead: $r->headers_out->set('Pragma' => 'no-cache'); $r->headers_out->set('Cache-Control' => 'no-cache'); I've actually never used 'no_cache' before but instead used the above two lines. Let me know if it works for you. Thanks, Paul On Mon, Sep 7, 2015 at 4:39 PM,

Re: no_cache(1)

2015-09-07 Thread Paul Silevitch
Hello Michel, Are you calling $r->no_cache before any response data has been sent? When you say the browser receives a '0' in the response, what do you mean exactly? Thanks, Paul On Mon, Sep 7, 2015 at 4:15 PM, Michel Jansen wrote: > if i add $r->no_cache(1) to an ajax responder perl script

why no Apache2::Const::M_HEAD?

2015-08-24 Thread Paul Silevitch
Hello mod_perl-ers, Subject says it all. I was working on a project where I wanted to tell if a request was a HEAD method and was surprised to see no constant for it. Any ideas why it is missing? Thanks, Paul

Re: Disconnect database connection after idle timeout

2014-11-12 Thread Paul Silevitch
I don't fully understand your need here. I'm going to give my best. You could set an alarm in the cleanup handler that calls the disconnect after a specified amount of time. If a new request comes in, you could cancel the alarm in a postreadrequest handler (or something early in the cycle). To

Apache2::Filter internal flush error

2014-11-11 Thread Paul Silevitch
Hello mod_perl-ers, I'm seeing a fair amount of these in my apache error log: Apache2::Filter internal flush: (-3) Unknown error 4294967293 at -e line 0 I'm running apache 2.2.29, mod_perl 2.0.8 on linux. Looking at the source code, it looks like I'm getting into this else-block in 'src/modules

Apache2::Filter internal flush error

2014-11-10 Thread Paul Silevitch
Hello mod_perl-ers, I'm seeing a fair amount of these in my apache error log: Apache2::Filter internal flush: (-3) Unknown error 4294967293 at -e line 0 I'm running apache 2.2.29, mod_perl 2.0.8 on linux. Looking at the source code, it looks like I'm getting into this else-block in 'src/modules