logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.



Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_ext_filter error
Author
stparker



Joined: 05 Jan 2007
Posts: 1
Location: Wisconsin, United States

PostPosted: Sun 10 Nov '19 1:31    Post subject: mod_ext_filter error Reply with quote

Dear Apache Lounge experts,

I have a custom input filter that I implemented using mod_ext_filter. It has been working well on server version 2.4.35 but is broken on 2.4.41. I am using the same http.conf file and nothing has changed in the server environment. I have not tested on the intervening versions.

I tested further using the "trace" filter example from the Apache Server 2.4.41 documentation with the same result.

Here is the snippet from the http.conf file:

ExtFilterDefine trace-filter mode=input \
cmd="C:/Perl64/bin/perl.exe C:/Apache24/conf/filters/trace_filter.pl"

<Location /trace>
ExtFilterOptions LogStderr
SetInputFilter trace-filter
</Location>

Here is the filter:

#!c:\perl64\bin\perl.exe
#
# Simple trace filter from Apache 2.4 mod_ext_filter documentation.
####################################################################
use strict;

open(SAVED, '>d:/trace.txt')
or die "Can't open trace.txt: $?";

while (<STDIN>) {
print SAVED $_;
print $_;
}

close (SAVED);


It works fine on 2.4.35. But on 2.4.41 the server returns a Bad Request error with the following in the error log:

[ext_filter:error] [pid xxxxx:tid xxxxx] (22)Invalid argument: [client xxx.xxx.xxx.xxx:xxxxx] AH01465: apr_file_pipe_timeout_set(child output)

I am thinking that 2.4.41 must be less forgiving about an issue in my configuration, but I'm stumped how to fix it.

Would anyone have any suggestions?

Thanks,

Steven
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2212
Location: Sun Diego, USA

PostPosted: Tue 12 Nov '19 7:45    Post subject: Reply with quote

No it looks like you squeezed a bug up to the surface. It looks to be in APR 1.7.0 because I at least see the perl script run and it creates a text file when using a 2.4.41 compiled with APR 1.6.5 like I did when I tried it with 2.4.35.
Back to top


Reply to topic   Topic: mod_ext_filter error View previous topic :: View next topic
Post new topic   Forum Index -> Apache