mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-05 19:52:14 +00:00
BUG/MINOR: http_htx: Initialize HTX error messages for TCP proxies
Since the HTX is the default mode for all proxies, HTTP and TCP, we must initialize all HTX error messages for all HTX-aware proxies and not only for HTTP ones. It is required to support HTTP upgrade for TCP proxies. This patch must be backported to 2.0.
This commit is contained in:
parent
cd76195061
commit
7b889cb387
@ -680,7 +680,7 @@ static int http_htx_init(void)
|
|||||||
int err_code = 0;
|
int err_code = 0;
|
||||||
|
|
||||||
for (px = proxies_list; px; px = px->next) {
|
for (px = proxies_list; px; px = px->next) {
|
||||||
if (px->mode != PR_MODE_HTTP || !(px->options2 & PR_O2_USE_HTX))
|
if (!(px->options2 & PR_O2_USE_HTX))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (rc = 0; rc < HTTP_ERR_SIZE; rc++) {
|
for (rc = 0; rc < HTTP_ERR_SIZE; rc++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user