]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: http-ana: Remove HTTP_MSG_ERROR state
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2023 10:22:12 +0000 (11:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Jan 2023 10:22:13 +0000 (11:22 +0100)
This state is now unused. Thus it can be removed.

include/haproxy/http_ana-t.h
include/haproxy/http_ana.h

index c85deb92af43669355f395fa0b76e2cde294f884..4db72fd75914c14e5a70c10d2380b8e527639262 100644 (file)
@@ -201,23 +201,19 @@ enum h1_state {
        HTTP_MSG_RQBEFORE     =  0, // request: leading LF, before start line
        HTTP_MSG_RPBEFORE     =  1, // response: leading LF, before start line
 
-       /* error state : must be before HTTP_MSG_BODY so that (>=BODY) always indicates
-        * that data are being processed.
-        */
-       HTTP_MSG_ERROR        =  2, // an error occurred
        /* Body processing.
         * The state HTTP_MSG_BODY is a delimiter to know if we're waiting for headers
         * or body. All the sub-states below also indicate we're processing the body,
         * with some additional information.
         */
-       HTTP_MSG_BODY         =  3, // parsing body at end of headers
-       HTTP_MSG_DATA         =  4, // skipping data chunk / content-length data
+       HTTP_MSG_BODY         =  2, // parsing body at end of headers
+       HTTP_MSG_DATA         =  3, // skipping data chunk / content-length data
        /* we enter this state when we've received the end of the current message */
-       HTTP_MSG_ENDING       =  5, // message end received, wait that the filters end too
-       HTTP_MSG_DONE         =  6, // message end received, waiting for resync or close
-       HTTP_MSG_CLOSING      =  7, // shutdown_w done, not all bytes sent yet
-       HTTP_MSG_CLOSED       =  8, // shutdown_w done, all bytes sent
-       HTTP_MSG_TUNNEL       =  9, // tunneled data after DONE
+       HTTP_MSG_ENDING       =  4, // message end received, wait that the filters end too
+       HTTP_MSG_DONE         =  5, // message end received, waiting for resync or close
+       HTTP_MSG_CLOSING      =  6, // shutdown_w done, not all bytes sent yet
+       HTTP_MSG_CLOSED       =  7, // shutdown_w done, all bytes sent
+       HTTP_MSG_TUNNEL       =  8, // tunneled data after DONE
 } __attribute__((packed));
 
 
index cbff545b1167a195424178fce952c38812a1e7c0..2cc6516c313991ed5f128cc70598437fbcd8cab0 100644 (file)
@@ -70,7 +70,6 @@ static inline const char *h1_msg_state_str(enum h1_state msg_state)
        switch (msg_state) {
        case HTTP_MSG_RQBEFORE:    return "MSG_RQBEFORE";
        case HTTP_MSG_RPBEFORE:    return "MSG_RPBEFORE";
-       case HTTP_MSG_ERROR:       return "MSG_ERROR";
        case HTTP_MSG_BODY:        return "MSG_BODY";
        case HTTP_MSG_DATA:        return "MSG_DATA";
        case HTTP_MSG_ENDING:      return "MSG_ENDING";