]> git.kaiwu.me - haproxy.git/commitdiff
CLEANUP: tcpcheck: Fix some typos in comments
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 06:39:45 +0000 (08:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Apr 2026 08:49:10 +0000 (10:49 +0200)
Some minor typos in comments were fixed.

include/haproxy/tcpcheck-t.h
src/tcpcheck.c

index dec0c90b495fc438ac87b5ebefdbc99635cab285..785b88ec6ec61482c4f15d5404244b97a73a3a30 100644 (file)
@@ -111,7 +111,7 @@ enum tcpcheck_rule_type {
 #define TCPCHK_FL_USE_SSL        0x00000004 /* tcp-check uses SSL connection */
 
 #define TCPCHK_RULES_NONE         0x00000000
-#define TCPCHK_RULES_DISABLE404   0x00000001 /* Disable a server on a 404 response wht HTTP health checks */
+#define TCPCHK_RULES_DISABLE404   0x00000001 /* Disable a server on a 404 response with HTTP health checks */
 #define TCPCHK_RULES_SNDST        0x00000002 /* send the state of each server along with HTTP health checks */
 
 #define TCPCHK_RULES_PGSQL_CHK   0x00000010
index 657fef757457db0ce3ab578f2058739ee1a8c3a4..1da341caa4e0bb55263510954ac81be1c7729b6b 100644 (file)
@@ -4493,7 +4493,7 @@ static int do_parse_ssl_hello_chk_opt(char **args, int cur_arg, struct proxy *cu
                "16"                        /* ContentType         : 0x16 = Handshake          */
                "0300"                      /* ProtocolVersion     : 0x0300 = SSLv3            */
                "0079"                      /* ContentLength       : 0x79 bytes after this one */
-               "01"                        /* HanshakeType        : 0x01 = CLIENT HELLO       */
+               "01"                        /* HandshakeType       : 0x01 = CLIENT HELLO       */
                "000075"                    /* HandshakeLength     : 0x75 bytes after this one */
                "0300"                      /* Hello Version       : 0x0300 = v3               */
                "%[date(),htonl,hex]"       /* Unix GMT Time (s)   : filled with <now> (@0x0B) */
@@ -4872,7 +4872,7 @@ static int do_parse_mysql_check_opt(char **args, int cur_arg, struct proxy *curp
                "00820000"                     /* client capabilities */
                "00800001"                     /* max packet */
                "21"                           /* character set (UTF-8) */
-               "000000000000000000000000"     /* 23 bytes, al zeroes */
+               "000000000000000000000000"     /* 23 bytes, all zeroes */
                "0000000000000000000000"
                "%[var(check.username),hex]00" /* the username */
                "00"                           /* filler (always 0x00) */
@@ -5355,7 +5355,7 @@ int proxy_parse_tcpcheck(char **args, int section, struct proxy *curpx, const st
        return ret;
 }
 
-/* Parses the "http-check" proxyx keyword */
+/* Parses the "http-check" proxy keyword */
 static int proxy_parse_httpcheck(char **args, int section, struct proxy *curpx, const struct proxy *defpx,
                                 const char *file, int line, char **errmsg)
 {
@@ -5633,7 +5633,7 @@ int proxy_parse_mysql_check_opt(char **args, int cur_arg, struct proxy *curpx, c
        return err_code;
 }
 
-/* Parses the "option httpchck" proxy keyword */
+/* Parses the "option httpchk" proxy keyword */
 int proxy_parse_httpchk_opt(char **args, int cur_arg, struct proxy *curpx, const struct proxy *defpx,
                            const char *file, int line)
 {