diff --git a/include/haproxy/tcpcheck-t.h b/include/haproxy/tcpcheck-t.h index dec0c90b4..785b88ec6 100644 --- a/include/haproxy/tcpcheck-t.h +++ b/include/haproxy/tcpcheck-t.h @@ -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 diff --git a/src/tcpcheck.c b/src/tcpcheck.c index 657fef757..1da341caa 100644 --- a/src/tcpcheck.c +++ b/src/tcpcheck.c @@ -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 (@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) {