Bug 62089 - failover not working with forward proxies
Summary: failover not working with forward proxies
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_proxy_http (show other bugs)
Version: 2.4.29
Hardware: All Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-09 12:58 UTC by Armin Abfalterer
Modified: 2018-02-09 12:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Armin Abfalterer 2018-02-09 12:58:21 UTC
When using multiple forward proxies (set by ProxyRemote) failover does not work as expected. The problem seems to be in mod_proxy_http.c when the scheme_handler tries to connect the next hop (forward proxy)

https://github.com/apache/httpd/blob/2.4.29/modules/proxy/mod_proxy_http.c#L1938-L1947

As "((apr_sockaddr_t*)((proxy_conn_rec*) backend))->addr->next" is not set ap_proxy_connect_backend() returns immediately after the first connection error

https://github.com/apache/httpd/blob/2.4.29/modules/proxy/proxy_util.c#L2870-L2881