Re: HTTP and MPM support

2019-01-27 Thread Dr James Smith
I would prefer to see a mod_perl 2.6 or 3 against perl 5 rather than perl 6 - I think it wouldn't go to far against perl 6 as there isn't the uptake - we would be unlikely to migrate to a perl 6 backend - there is too much pressure already to move to an alternative language (python at the momen

Re: HTTP and MPM support

2019-01-25 Thread Dr James Smith
Agree with this we use AAA handlers - but more importantly output filters to allow content to be decorated per site (independent of what generates the content perl/java/php proxied content etc...} and add in a few useful extra logging features that rely on things like transHandlers and log & cl

Re: Future MPM Support?

2018-06-09 Thread Dr James Smith
people who just use response handlers do not see this issue. But we hook into about 10 phases of the apache process ... On 08/06/2018 02:08, John Dunlap wrote: Does using mod_perl properly allow you to use mpm_event or mpm_worker? On Thu, Jun 7, 2018 at 9:19 PM, Dr James Smith <mailt

Re: Future MPM Support?

2018-06-07 Thread Dr James Smith
Unfortunately Plack (and Catalyst especially) are a fairly poor comparison to using mod_perl properly {unfortunately very few people do so} I've looked at Dancer and Catalyst - both are OK at what they do - but they don't really handle things in the really clean easy way that mod_perl does {if

Re: Recommended Linux distribution for LAMP/mod_perl

2016-10-03 Thread Dr James Smith
We tend to now use Ubuntu LTS set ups for our webservers - currently a mix of 12.04, 14.04 and 16.04 depening on which part of the production cycle we are on (yes we have at least 60 for approx 120 different websites)... On 03/10/2016 18:09, John Dunlap wrote: You're going to be better off wi

Re: Alternatives to CGI perl module

2016-09-11 Thread Dr James Smith
CGI.pm is still good - but i you are using modperl "properly" then it is worth look at APR, which when you use CGI.pm under mod_perl it is what is used under the hood... and is faster than CGI (one less level of abstraction) although there is a minor bug in it - in that is broken if you use mod

Re: Upgrade to Apache 2.4 breaks encoding in a PerlOutputFilterHandler

2015-11-29 Thread Dr James Smith
I knew it was a problem - but due to our set up of front end proxy / mod_perl then this wasn't an issue.. the mod_perl server handles the filter - and the front end proxy does the gzipping (we use Brocade Traffic Mangers and Apache in different places) - in most production environments this is

Re: Random segmentation fault

2015-09-06 Thread Dr James Smith
John, Sometimes it's difficult to see what the error is because you can't see the request (doesn't get logged) To get round this - add: * a transhandler which writes a tag (e.g. ST), the request and the PID to the error log * a cleanuphandler which does the same... with a different tag (

Re: Enquiry about mod_perl project state

2015-08-15 Thread Dr James Smith
I agree with Randolf, I have watched a number of projects move away from mod_perl - often to Dancer/ Catalyst etc and then they ask can I do X, Y or Z... I say "if you were using mod_perl you could do that easily" but usually find the tool chain for doing something similar in Dancer or Cataly

Re: Large File Download

2015-03-31 Thread Dr James Smith
On 28/03/2015 19:54, Issac Goldstand wrote: sendfile is much more efficient than that. At the most basic level, sendfile allows a file to be streamed directly from the block device (or OS cache) to the network, all in kernel-space (see sendfile(2)). What you describe below is less effective, si

Re: Large File Download

2015-03-28 Thread Dr James Smith
You can effectively stream a file byte by byte - you just need to print a chunk at a time and mod_perl and apache will handle it appropriately... I do this all the time to handle large data downloads (the systems I manage are backed by peta bytes of data)... The art is often not in the output

Re: mod_perl for multi-process file processing?

2015-02-02 Thread Dr James Smith
Alan/Alexandr, There will always be an overhead with using a webserver to do this - even using mod_perl. Assumiptions: *from what you are saying that there is no actual website involved but you want to use mod_perl to cache data for an offline process; *One set of data is use

Re: Perl + DBD-Oracle, problems with encoding when "PerlHandler Apache::Registry" is in use

2014-11-23 Thread Dr James Smith
On 23/11/2014 05:42, Ruben Safir wrote: did you ever get this worked out. I'm looking to use perl with my oracle set up. Any tips would be appreciated. I had similar problems Apache 2.2 with DBD::Oracle, after serious debugging there was a nasty environment variable issue - DBD::Oracle when fi

Re: Apache2::Connection::remote_ip

2014-11-20 Thread Dr James Smith
On 20/11/2014 22:39, John Dunlap wrote: Could you give us a link to the documentation you are using? On Thu, Nov 20, 2014 at 5:38 PM, worik > wrote: Can't locate object method "remote_ip" via package "Apache2::Connection You are probably looking at 2.2

Re: Disconnect database connection after idle timeout

2014-11-13 Thread Dr James Smith
On 13/11/2014 15:43, Perrin Harkins wrote: On Thu, Nov 13, 2014 at 10:29 AM, Xinhuan Zheng mailto:xzh...@christianbook.com>> wrote: We don’t have any front end proxy. I think I see the problem... ;) If you use a front-end proxy so that your mod_perl servers are only handling mod_perl re