mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
CLEANUP: proxy: Remove the flag PR_O2_USE_HTX
This flag is now unused. So we can safely remove it.
This commit is contained in:
parent
25994dacb3
commit
28b18c5e21
@ -152,7 +152,7 @@ enum PR_SRV_STATE_FILE {
|
||||
#define PR_O2_SRC_ADDR 0x00100000 /* get the source ip and port for logs */
|
||||
|
||||
#define PR_O2_FAKE_KA 0x00200000 /* pretend we do keep-alive with server eventhough we close */
|
||||
#define PR_O2_USE_HTX 0x00400000 /* use the HTX representation for the HTTP protocol */
|
||||
/* unused : 0x00400000 */
|
||||
|
||||
#define PR_O2_EXP_NONE 0x00000000 /* http-check : no expect rule */
|
||||
#define PR_O2_EXP_STS 0x00800000 /* http-check expect status */
|
||||
|
||||
@ -680,9 +680,6 @@ static int http_htx_init(void)
|
||||
int err_code = 0;
|
||||
|
||||
for (px = proxies_list; px; px = px->next) {
|
||||
if (!(px->options2 & PR_O2_USE_HTX))
|
||||
continue;
|
||||
|
||||
for (rc = 0; rc < HTTP_ERR_SIZE; rc++) {
|
||||
if (!b_data(&px->errmsg[rc]))
|
||||
continue;
|
||||
|
||||
@ -895,9 +895,6 @@ void init_new_proxy(struct proxy *p)
|
||||
/* initial uuid is unassigned (-1) */
|
||||
p->uuid = -1;
|
||||
|
||||
/* HTX is the default mode, for HTTP and TCP */
|
||||
p->options2 |= PR_O2_USE_HTX;
|
||||
|
||||
/* Default to only allow L4 retries */
|
||||
p->retry_type = PR_RE_CONN_FAILED;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user