]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: proto_http: Group remaining flags of the HTTP transaction
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 17 Jul 2019 09:22:37 +0000 (11:22 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:24:12 +0000 (09:24 +0200)
include/types/proto_http.h

index a73a0a3d792cac8d346ea066e4faf8868e8b8f36..295a98624a7b3bf067c425da7bfe78decb0ce0bb 100644 (file)
 #define TX_CACHE_IGNORE 0x00004000     /* do not retrieve object from cache */
 #define TX_CACHE_SHIFT 12              /* bit shift */
 
-/* Unused: 0x00008000, 0x00010000, 0x00020000, 0x00080000 */
+#define TX_CON_WANT_TUN 0x00008000     /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */
 
-#define TX_CON_WANT_TUN 0x00100000 /* 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 */
 
-/* unused: 0x00200000, 0x00400000, 0x00800000, 0x01000000, 0x02000000 */
-
-#define TX_WAIT_NEXT_RQ        0x04000000      /* waiting for the second request to start, use keep-alive timeout */
-
-/* unused: 0x08000000, 0x10000000, 0x20000000 */
-
-#define TX_USE_PX_CONN 0x40000000      /* Use "Proxy-Connection" instead of "Connection" */
+#define TX_USE_PX_CONN 0x00020000      /* Use "Proxy-Connection" instead of "Connection" */
 
 /* used only for keep-alive purposes, to indicate we're on a second transaction */
-#define TX_NOT_FIRST   0x80000000      /* the transaction is not the first one */
-/* no more room for transaction flags ! */
+#define TX_NOT_FIRST   0x00040000      /* the transaction is not the first one */
 
 /* The HTTP parser is more complex than it looks like, because we have to
  * support multi-line headers and any number of spaces between the colon and