You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tero Armando De La Rosa <te...@11paths.com> on 2016/04/13 11:59:47 UTC
[users@httpd] mod_ext_filter with Mono problem
Hello,
I'm trying to create a simple Mono program that is configured as an external filter that simply reads from stdin and writes to stdout a modified version of a media file (images, videos...).
Prior to reading from stdin I'm trying to craft a POC which simply replaces all requests' content with a hardcoded file ("Capture.PNG" in my case).
The problem is that a timeout always occurs when I do this.
[Wed Apr 13 11:26:51.906231 2016] [ext_filter:error] [pid 1899:tid 139929490360064] (70007)The timeout specified has expired: [client 10.0.216.137:15328] AH01466: apr_file_read(child output), len 18446744073709551615
[Wed Apr 13 11:26:51.906342 2016] [ext_filter:error] [pid 1899:tid 139929490360064] (70007)The timeout specified has expired: [client 10.0.216.137:15328] AH01468: ef_unified_filter() failed
However, if I replace the filter line with this: "/bin/cat /var/www/html/Capture.PNG" it will always work correctly.
Can anyone shed some light on this? Thank you in advance.
PD. Find enclosed the source code and apache configuration I'm using. I'm also running Apache 2.4.7 on Ubuntu Server 14.04 which comes by default.