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: [email protected]
Reporter: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]