httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 59319] New: ProxyPass connectiontimeout not honored with specific target url
Date Thu, 14 Apr 2016 10:46:42 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=59319

            Bug ID: 59319
           Summary: ProxyPass connectiontimeout not honored with specific
                    target url
           Product: Apache httpd-2
           Version: 2.4-HEAD
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
          Assignee: bugs@httpd.apache.org
          Reporter: ben.rubson@gmail.com

Hello,

I think I have found a bug around ProxyPass connectiontimeout parameter.

Here is the test config :

RewriteEngine On
RewriteMap chooseproxy prg:/chooseproxy.pl
RewriteCond ${chooseproxy:%{THE_REQUEST}} ^([0-9]{4,5})$
RewriteRule (.*) - [L,E=proxytouse:127.0.0.1:%1]
ProxyPassInterpolateEnv on
ProxyPass "/api/" "https://${proxytouse}/api/" interpolate connectiontimeout=5

Depending on the request, chooseproxy.pl returns the proxy port to connect to.
It works fine, however connectiontimeout is not honored : if port is not
reachable, Apache only times-out after timeout seconds (the global timeout
parameter).

If I change my ProxyPass rule removing the ${proxytouse} variable, for example
:
ProxyPass "/api/" "https://127.0.0.1:1234/api/" interpolate connectiontimeout=5
Then connectiontimeout parameter works correctly.

Thank you,

Best regards,

Ben

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message