]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: http-ana: Remove TX_WAIT_NEXT_RQ unsued flag
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Oct 2020 15:58:43 +0000 (17:58 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
This flags is now unused. It was used in REQ_WAIT_HTTP analyser, when a
stream was waiting for a request, to set the keep-alive timeout or to avoid
to send HTTP errors to client.

contrib/debug/flags.c
include/haproxy/http_ana-t.h
src/http_ana.c

index a596b1a453729ed3759b4074c7a38e3bfe175023..d845e4efe2a0a69ea7dbebd47b242901abfd6a07 100644 (file)
@@ -296,7 +296,6 @@ void show_txn_flags(unsigned int f)
 
        SHOW_FLAG(f, TX_NOT_FIRST);
        SHOW_FLAG(f, TX_USE_PX_CONN);
-       SHOW_FLAG(f, TX_WAIT_NEXT_RQ);
        SHOW_FLAG(f, TX_CON_WANT_TUN);
 
        SHOW_FLAG(f, TX_CACHE_COOK);
index 5fb8298deb9d6ab04789567e449b1931d40c7054..4dce43d477f11f882bb68b63f8e8db538208d2f9 100644 (file)
@@ -64,7 +64,7 @@
 
 #define TX_CON_WANT_TUN 0x00008000     /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */
 
-#define TX_WAIT_NEXT_RQ        0x00010000      /* waiting for the second request to start, use keep-alive timeout */
+/* unsued 0x00010000 */
 
 #define TX_USE_PX_CONN 0x00020000      /* Use "Proxy-Connection" instead of "Connection" */
 
index 09dde1954ac94c4efeeee665abf8690186b44cf1..de99a5d92bd7206b56a43141ded69fe0b0b68f6d 100644 (file)
@@ -115,7 +115,6 @@ int http_wait_for_request(struct stream *s, struct channel *req, int an_bit)
        proxy_inc_fe_req_ctr(sess->listener, sess->fe); /* one more valid request for this FE */
 
        /* kill the pending keep-alive timeout */
-       txn->flags &= ~TX_WAIT_NEXT_RQ;
        req->analyse_exp = TICK_ETERNITY;
 
        BUG_ON(htx_get_first_type(htx) != HTX_BLK_REQ_SL);
@@ -4425,7 +4424,6 @@ void http_reply_and_close(struct stream *s, short status, struct http_reply *msg
 
 end:
        s->res.wex = tick_add_ifset(now_ms, s->res.wto);
-       s->txn->flags &= ~TX_WAIT_NEXT_RQ;
 
        channel_auto_read(&s->req);
        channel_abort(&s->req);
@@ -4923,9 +4921,7 @@ void http_init_txn(struct stream *s)
        struct http_txn *txn = s->txn;
        struct conn_stream *cs = objt_cs(s->si[0].end);
 
-       txn->flags = ((cs && cs->flags & CS_FL_NOT_FIRST)
-                     ? (TX_NOT_FIRST|TX_WAIT_NEXT_RQ)
-                     : 0);
+       txn->flags = ((cs && cs->flags & CS_FL_NOT_FIRST) ? TX_NOT_FIRST : 0);
        txn->status = -1;
        txn->http_reply = NULL;
        write_u32(txn->cache_hash, 0);