Re: Can't locate object method "pool" via package "Apache2::Filter"... line xx

2016-06-20 Thread Henry Combrinck
I'm having a problem with an >> input filter. The error I get is as per the subject line. >> >> Here's the code: >> >> apache config >> >> Perlrequire /opt/code/scripts/apache2-perl-startup.pl >> ... >> PerlOutputFilterHandler ZCRM

Re: Can't locate object method "pool" via package "Apache2::Filter"... line xx

2016-06-20 Thread Henry Combrinck
fig > > Perlrequire /opt/code/scripts/apache2-perl-startup.pl > ... > PerlOutputFilterHandler ZCRM::OFilter::output > PerlInputFilterHandler ZCRM::OFilter::input > > And here's the perl code (output filter works fine, but the input filter > results in the error below)

Re: Can't locate object method "pool" via package "Apache2::Filter"... line xx

2016-06-19 Thread Philippe Chiasson
;s the perl code (output filter works fine, but the input filter > results in the error below) > > package ZCRM::OFilter; > > use strict; > use warnings; > > use Apache2::Filter (); > use Apache2::RequestRec (); > use Apache2::Const -compile => qw(OK DE

Re: Can't locate object method "pool" via package "Apache2::Filter"... line xx

2016-06-19 Thread Henry Combrinck
rl-startup.pl > ... > PerlOutputFilterHandler ZCRM::OFilter::output > PerlInputFilterHandler ZCRM::OFilter::input > > And here's the perl code (output filter works fine, but the input filter > results in the error below) > > package ZCRM::OFilter; > > use strict; >

Can't locate object method "pool" via package "Apache2::Filter"... line xx

2016-06-19 Thread Henry Combrinck
che2-perl-startup.pl ... PerlOutputFilterHandler ZCRM::OFilter::output PerlInputFilterHandler ZCRM::OFilter::input And here's the perl code (output filter works fine, but the input filter results in the error below) package ZCRM::OFilter; use strict; use warnings; use Apache2::Filter ()

Re: Apache2 filter

2015-10-02 Thread André Warnier
tml#Output_Filters). I have this so far : package MyFilter; ... use base qw(Apache2::Filter); ... use constant BUFF_LEN => 4096; sub handler : FilterRequestHandler { my $f = shift; my $content = ''; while ($f->read(my $buffer, BUFF_LEN)) { $content .= $buffer;

Re: Apache2 filter

2015-10-02 Thread James Smith
ache2 request filter. According to the online tutorial (http://perl.apache.org/docs/2.0/user/handlers/filters.html#Output_Filters). I have this so far : package MyFilter; ... use base qw(Apache2::Filter); ... use constant BUFF_LEN => 4096; sub handler : FilterRequestHandler { my $f

Re: Apache2 filter

2015-10-01 Thread Vincent Veyron
(posted with wrond id, re-posting) On Thu, 1 Oct 2015 19:59:34 +0200 "A. Warnier" wrote: > > sub handler : FilterRequestHandler { > > What I am missing ? > I get the same error when I add ': FilterRequestHandler'. Using just 'sub handler {' instead works FilterRequestHandler is assumed wh

Apache2 filter

2015-10-01 Thread A. Warnier
Hi. I am trying to write an Apache2 request filter. According to the online tutorial (http://perl.apache.org/docs/2.0/user/handlers/filters.html#Output_Filters). I have this so far : package MyFilter; ... use base qw(Apache2::Filter); ... use constant BUFF_LEN => 4096; sub hand

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 els

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 els

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Adam Prime
I wrote a module based on a talk Geoff Young gave a bazillion years ago to abstract this problem away (sort of). You can check it out here: http://search.cpan.org/~aprime/Apache2-Filter-TagAware-0.02/lib/Apache2/Filter/TagAware.pm Adam On 3/31/2011 12:30 AM, Chris Datfung wrote: On Wed, Mar

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Torsten Förtsch
On Thursday, March 31, 2011 12:08:03 Chris Datfung wrote: > y string is always within the first 5000 bytes, but setting BUFF_LEN to > 8000 did not help as the buffer still sometimes gets cut after ~2500 bytes > or so. Do you know of any way to force the bucket to be a certain length? To my knowled

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Hendrik Schumacher
>> >> with "dy>"). I had to buffer the last bytes of each response part and >> >> take >> >> them into account >> > >> > >> > Hi Hendrik, >> > >> > That is exactly the problem. How did you buffer the last byt

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Chris Datfung
had to buffer the last bytes of each response part and > >> take > >> them into account > > > > > > Hi Hendrik, > > > > That is exactly the problem. How did you buffer the last bytes of each > > response. Don't you just set the BUFF_LEN

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-31 Thread Hendrik Schumacher
fer the last bytes of each response part and >> take >> them into account > > > Hi Hendrik, > > That is exactly the problem. How did you buffer the last bytes of each > response. Don't you just set the BUFF_LEN and thats the number of > characters > you get? >

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-30 Thread Chris Datfung
On Wed, Mar 30, 2011 at 12:36 PM, Hendrik Schumacher wrote: > Am Mi, 30.03.2011, 12:17 schrieb Chris Datfung: > > I had a similar problem with a http proxy that injected a string into the > HTML body. If the response is passed to the filter in multiple parts there > is a certain probability that t

Re: Apache2::Filter Intermittently Missing Injected String

2011-03-30 Thread Hendrik Schumacher
Am Mi, 30.03.2011, 12:17 schrieb Chris Datfung: > I have a script that uses Apache2::Filter to filter the server response > output and inject a string into the HTML body. The script normally works > fine expect intermittently the output is missing the injected string. This > happens a

Apache2::Filter Intermittently Missing Injected String

2011-03-30 Thread Chris Datfung
I have a script that uses Apache2::Filter to filter the server response output and inject a string into the HTML body. The script normally works fine expect intermittently the output is missing the injected string. This happens around 10% of the time. I verified that there is enough memory and CPU

ANNOUNCE: Apache2::Filter::TagAware

2007-10-21 Thread Adam Prime
The uploaded file Apache2-Filter-TagAware-0.01.tar.gz has entered CPAN as file: $CPAN/authors/id/A/AP/APRIME/Apache2-Filter-TagAware-0.01.tar.gz size: 9124 bytes md5: dbf01588e4030b70d449654fb98deed8 Nearly a year after this thread: http://marc.info/?l=apache-modperl&a

ANNOUNCE: Apache2-Filter-Minifier-CSS/JavaScript 1.03

2007-09-28 Thread Graham TerMarsch
I've just rolled new 1.03 releases of both: Apache2::Filter::Minifier::CSS Apache2::Filter::Minifier::JavaScript Changes since previous release: - Fixed "Content-Type" filtering so that it now properly handles cases where the C-T header may have additional

ANNOUNCE: Apache2-Filter-Minifier-JavaScript 1.01

2007-09-21 Thread Graham TerMarsch
Should fix up issues that CPAN Testers had with the 1.00 release... -- Forwarded Message -- The uploaded file Apache2-Filter-Minifier-JavaScript-1.01.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-JavaScript-1.01.tar.g z size

ANNOUNCE: Apache2-Filter-Minifier-CSS 1.01

2007-09-21 Thread Graham TerMarsch
Should fix up issues that CPAN Testers had with the 1.00 release. -- Forwarded Message -- The uploaded file Apache2-Filter-Minifier-CSS-1.01.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-CSS-1.01.tar.gz size: 5235 bytes

ANNOUNCE: Apache2-Filter-Minifier-CSS

2007-09-20 Thread Graham TerMarsch
The uploaded file Apache2-Filter-Minifier-CSS-1.00.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-CSS-1.00.tar.gz size: 5129 bytes md5: d0552123e7b3f4d5d1ff9b8fe482c893 Please allow time for the file to mirror across CPAN... Apache2::Filter

ANNOUNCE: Apache2-Filter-Minifier-JavaScript

2007-09-20 Thread Graham TerMarsch
The uploaded file Apache2-Filter-Minifier-JavaScript-1.00.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GT/GTERMARS/Apache2-Filter-Minifier-JavaScript-1.00.tar.gz size: 5186 bytes md5: 514ca279df6b96e6bfee6f4e0d36a9e7 Please allow time for the file to mirror across CPAN

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Geoffrey Young
Graham TerMarsch wrote: > On Thursday 20 September 2007 6:45 am, Geoffrey Young wrote: >> Graham TerMarsch wrote: >>> I've been working on some projects needing JS minification recently and >>> wanted to ping others and find out if anyone else would find it useful to >>> have a mod_perl2 filter t

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Graham TerMarsch
On Thursday 20 September 2007 6:45 am, Geoffrey Young wrote: > Graham TerMarsch wrote: > > I've been working on some projects needing JS minification recently and > > wanted to ping others and find out if anyone else would find it useful to > > have a mod_perl2 filter that auto-minified your JS (us

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Geoffrey Young
Graham TerMarsch wrote: > I've been working on some projects needing JS minification recently and > wanted > to ping others and find out if anyone else would find it useful to have a > mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)... see also http://search.cpan.o

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Graham TerMarsch
filter that auto-minified your JS (using > > JavaScript::Minifier)... > > > > Am thinking along the lines of something that you'd set up in your Apache > > config like: > > > > > > PerlOutputFilterHandler Apache2::Filter::Minifier::Java

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Clinton Gormley
On Wed, 2007-09-19 at 10:24 -0700, Graham TerMarsch wrote: > I've been working on some projects needing JS minification recently and > wanted > to ping others and find out if anyone else would find it useful to have a > mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)...

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Philippe M. Chiasson
Graham TerMarsch wrote: > I've been working on some projects needing JS minification recently and > wanted > to ping others and find out if anyone else would find it useful to have a > mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)... > [...] > > Seeing the above makes

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Philippe M. Chiasson
hinking along the lines of something that you'd set up in your Apache > config like: > > > PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript > PerlSetVar MINIFIER_CACHE_ROOT /path/to/your/cache/dir > > > Results w

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Boysenberry Payne
If there is anything I can do to help let me know. I'd really like to have a small footprint on my JS output, right now its still pretty big. Boysenberry Payne Habitat Life, Inc. http://www.habitatlife.com/ On Sep 19, 2007, at 12:49 PM, Graham TerMarsch wrote: On Wednesday 19 September 2007

Re: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Graham TerMarsch
On Wednesday 19 September 2007 10:51 am, John Saylor wrote: > > -Original Message- > > From: Graham TerMarsch [mailto:[EMAIL PROTECTED] > > > > [deletions] > > > > I've been working on some projects needing JS minification recently and > > wanted to ping others and find out if anyone else w

RE: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread John Saylor
ur JS (using JavaScript::Minifier)... Also thinking that an Apache2::Filter::Minifier::CSS module would be possible using CSS::Minifier; basically same thing but for CSS instead. i'm not so familiar with how the minifiers work, but in javascript, if it changes function or object names, an

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Graham TerMarsch
On Wednesday 19 September 2007 10:40 am, Boysenberry Payne wrote: > I could use something like this. Right now I use Toolkit Template to > build from. > It already caches the JS file loaded from disk. I would want to then > put it through > the minifier process and cache then serve. Would you mo

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Boysenberry Payne
that you'd set up in your Apache config like: PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript PerlSetVar MINIFIER_CACHE_ROOT /path/to/your/cache/dir Results would be cached to disk, so that we didn't have to re- minify

RFC: Apache2::Filter::Minifier::JavaScript

2007-09-19 Thread Graham TerMarsch
up in your Apache config like: PerlOutputFilterHandler Apache2::Filter::Minifier::JavaScript PerlSetVar MINIFIER_CACHE_ROOT /path/to/your/cache/dir Results would be cached to disk, so that we didn't have to re-minify the JS files on each an

Re: [RFC] Apache2::Filter::TagAware

2006-11-17 Thread Geoffrey Young
Adam Prime x443 wrote: > I didn't get any response at all to this, though maybe a half a dozen > people actually looked at the code. Being completely unfamaliar with > the process of contributing code to the community, i'm not sure if this > is what I should have expected or not. it depends on

Re: [RFC] Apache2::Filter::TagAware

2006-11-17 Thread Michael Peters
Adam Prime x443 wrote: > I didn't get any response at all to this, though maybe a half a dozen > people actually looked at the code. Being completely unfamaliar with > the process of contributing code to the community, i'm not sure if this > is what I should have expected or not. Depends. In m

RE: [RFC] Apache2::Filter::TagAware

2006-11-17 Thread Adam Prime x443
t: Sunday, November 12, 2006 12:09 AM > To: modperl@perl.apache.org > Subject: [RFC] Apache2::Filter::TagAware > > At ApacheCon this year Geoff gave a talk about Output filters > (slides: > http://www.modperlcookbook.org/~geoff/slides/ApacheCon/2006/mp > 2_filters-printable

[RFC] Apache2::Filter::TagAware

2006-11-11 Thread Adam Prime x443
the body of the page the metrics were about. This kind of filter too would have to handle the split tags problem. So it occurred to me that this might well be handled by subclassing Apache2::Filter and making the subclass handle it. So after a bunch of screwing around I finally got a pretty

[Fwd: CPAN Upload: P/PG/PGOLLUCCI/Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz]

2005-07-06 Thread Philip M. Gollucci
The uploaded file Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz has entered CPAN as file: $CPAN/authors/id/P/PG/PGOLLUCCI/Apache2-Filter-HTTPHeadersFixup-0.06.tar.gz size: 7748 bytes md5: 253f4df9d395dbb4735c0708aa809968 No action is required on your part Request entered by: PGOLLUCCI