]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlya Shipitsin <chipitsine@gmail.com>
Wed, 30 Nov 2022 11:22:42 +0000 (16:22 +0500)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Nov 2022 13:02:36 +0000 (14:02 +0100)
This is 33rd iteration of typo fixes

15 files changed:
MAINTAINERS
doc/configuration.txt
include/haproxy/cli-t.h
include/haproxy/cli.h
include/haproxy/mux_fcgi-t.h
include/haproxy/mux_h1-t.h
include/haproxy/quic_loss.h
include/haproxy/server.h
include/import/xxhash.h
reg-tests/checks/4be_1srv_health_checks.vtc
src/haproxy.c
src/hlua.c
src/http.c
src/http_htx.c
src/resolvers.c

index c56ac24a2a317072d39cffac5661f5f91e4e026c..d4b7980ca44137b336d202ac6032a316dd423629 100644 (file)
@@ -12,7 +12,7 @@ listed for a subsystem, you can simply send your changes the usual way, and it
 is also a sign that if you want to strengthen your skills on certain parts you
 can become yourself a maintainer of the parts you care a lot about.
 
-Please do not ask them to troubleshoot your bugs, it's not their job eventhough
+Please do not ask them to troubleshoot your bugs, it's not their job even though
 they may occasionally help as time permits.
 
 List of maintainers
index 769714cd9f3f76ab659e76dc8e81163d4b3273b1..cba147c0921e0194e6fdb991c014d3e769db2fad 100644 (file)
@@ -1844,9 +1844,9 @@ lua-load <file> [ <arg1> [ <arg2> [ ... ] ] ]
   way will always see 0 in the "core.thread" variable. This directive can be
   used multiple times.
 
-  args are avalaible in the lua file using the code below in the body of the
+  args are available in the lua file using the code below in the body of the
   file. Do not forget that Lua arrays start at index 1. A "local" variable
-  declared in a file is avalaible in the entire file and not avalaible on
+  declared in a file is available in the entire file and not available on
   other files.
 
      local args = table.pack(...)
@@ -14144,7 +14144,7 @@ ca-file <cafile>
   directive. But you mustn't use it unless you know what you are doing.
   Configuring it this way basically mean that the bind will accept any client
   certificate generated from one of the CA present on your system, which is
-  extremely unsecure.
+  extremely insecure.
 
 ca-ignore-err [all|<errorID>,...]
   This setting is only available when support for OpenSSL was built in.
@@ -23368,7 +23368,7 @@ for the cache filter.
 
 There are two kinds of bandwidth limitation filters. The first one enforces a
 default limit and is applied per stream. The second one uses a stickiness table
-to enfore a limit equally divided between all streams sharing the same entry in
+to enforce a limit equally divided between all streams sharing the same entry in
 the table.
 
 In addition, for a given filter, depending on the filter keyword used, the
index 5d2c079778fb5f32a35942f64f7ca625bb94a13c..104b0b157e13da76e19cb9f47c859f4a81862381 100644 (file)
@@ -58,8 +58,8 @@ enum {
        CLI_ST_PRINT_ERR,  /* display const error in cli->msg */
        CLI_ST_PRINT_DYN,  /* display dynamic message in cli->err. After the display, free the pointer */
        CLI_ST_PRINT_DYNERR, /* display dynamic error in cli->err. After the display, free the pointer */
-       CLI_ST_PRINT_UMSG, /* display usermsgs_ctx buffer. After the display, usermsgs_ctx is resetted. */
-       CLI_ST_PRINT_UMSGERR, /* display usermsgs_ctx buffer as error. After the display, usermsgs_ctx is resetted. */
+       CLI_ST_PRINT_UMSG, /* display usermsgs_ctx buffer. After the display, usermsgs_ctx is reset. */
+       CLI_ST_PRINT_UMSGERR, /* display usermsgs_ctx buffer as error. After the display, usermsgs_ctx is reset. */
        CLI_ST_CALLBACK,   /* custom callback pointer */
 };
 
index 6b049b855a62c3bb3bf00d2482ff65c5b6da3ad7..32c6599446025e593977171dc799c24e7e8eba2a 100644 (file)
@@ -109,7 +109,7 @@ static inline int cli_dynerr(struct appctx *appctx, char *err)
 }
 
 /* updates the CLI's context to log messages stored in thread-local
- * usermsgs_ctx at <severity> level. usermsgs_ctx will be resetted when done.
+ * usermsgs_ctx at <severity> level. usermsgs_ctx will be reset when done.
  * This is for use in CLI parsers to deal with quick response messages.
  *
  * Always returns 1.
@@ -124,7 +124,7 @@ static inline int cli_umsg(struct appctx *appctx, int severity)
 }
 
 /* updates the CLI's context to log messages stored in thread-local
- * usermsgs_ctx using error level. usermsgs_ctx will be resetted when done.
+ * usermsgs_ctx using error level. usermsgs_ctx will be reset when done.
  * This is for use in CLI parsers to deal with quick response messages.
  *
  * Always returns 1.
index 4599a36da5a354bd112a20fcaa3717344bca215b..27973dbf41cdb83637cef6e1025414a975627681 100644 (file)
@@ -28,7 +28,7 @@
 /**** FCGI connection flags (32 bit), in fcgi_conn->flags ****/
 #define FCGI_CF_NONE           0x00000000
 
-/* Flags indicating why writing to the mux is blockes */
+/* Flags indicating why writing to the mux is blocked */
 #define FCGI_CF_MUX_MALLOC      0x00000001 /* mux is blocked on lack connection's mux buffer */
 #define FCGI_CF_MUX_MFULL       0x00000002 /* mux is blocked on connection's mux buffer full */
 #define FCGI_CF_MUX_BLOCK_ANY   0x00000003 /* mux is blocked on connection's mux buffer full */
index 8d4c3a4add9fd3ce9e347f0286d8246255af7c62..edf4459da4e2300bf59876554315bfb2b1086a20 100644 (file)
@@ -51,7 +51,7 @@
 #define H1C_F_CO_MSG_MORE    0x00020000 /* set if CO_SFL_MSG_MORE must be set when calling xprt->snd_buf() */
 #define H1C_F_CO_STREAMER    0x00040000 /* set if CO_SFL_STREAMER must be set when calling xprt->snd_buf() */
 
-/* 0x00040000 - 0x40000000 unusued*/
+/* 0x00040000 - 0x40000000 unused */
 #define H1C_F_IS_BACK        0x80000000 /* Set on outgoing connection */
 
 
index 0f6098e0198b839f9f0c17185f706bae2b8c939c..e4cb82f2cdc07700dafa7be0c040c6f2e37fac0c 100644 (file)
@@ -40,7 +40,7 @@ static inline void quic_loss_init(struct quic_loss *ql)
        ql->pto_count = 0;
 }
 
-/* Return 1 if a persitent congestion is observed for a list of
+/* Return 1 if a persistent congestion is observed for a list of
  * lost packets sent during <period> period depending on <ql> loss information,
  * <now_us> the current time and <max_ack_delay_us> the maximum ACK delay of the connection
  * experiencing a packet loss. Return 0 on the contrary.
index 85cf98f4ef95ce0785392c2e59058c3e04101f54..6dc905a179371101fc50385b78571f8e13145148 100644 (file)
@@ -162,7 +162,7 @@ void srv_set_admin_flag(struct server *s, enum srv_admin mode, const char *cause
  */
 void srv_clr_admin_flag(struct server *s, enum srv_admin mode);
 
-/* Calculates the dynamic persitent cookie for a server, if a secret key has
+/* Calculates the dynamic persistent cookie for a server, if a secret key has
  * been provided.
  */
 void srv_set_dyncookie(struct server *s);
index 08ab79457233e00d5b804b51bbd83e77a9522cc4..7b028edcfbbf384bd4eabf6bbfe3f7922ea7e024 100644 (file)
@@ -2837,7 +2837,7 @@ enum XXH_VECTOR_TYPE /* fake enum */ {
  * @ingroup tuning
  * @brief Selects the minimum alignment for XXH3's accumulators.
  *
- * When using SIMD, this should match the alignment reqired for said vector
+ * When using SIMD, this should match the alignment required for said vector
  * type, so, for example, 32 for AVX2.
  *
  * Default: Auto detected.
index 88b631ad37b79ac8858bbe9e05ad1079058ba493..02564be54c1d46a6eb6d05483c4da5f25e2f593b 100644 (file)
@@ -7,7 +7,7 @@ feature ignore_unknown_macro
 
 # This script test health-checks for four backends with one server by backend.
 # A syslog server is attached to each backend to check the syslog messages
-# in the righ order.
+# in the right order.
 
 # First, we check a health-check has passed for all the servers thanks to the syslog
 # messages. Then each server is disabled. The health-check status are checked.
index 1650147cf77b3a5e60793583a3323a2364edf323..4fad8371c7fce64b02ff6f9d17deb20533e9f1cf 100644 (file)
@@ -2304,7 +2304,7 @@ static void init(int argc, char **argv)
 
 #if (HA_OPENSSL_VERSION_NUMBER < 0x1010000fL)
        /* Initialize the error strings of OpenSSL
-        * It only needs to be done explicitely with older versions of the SSL
+        * It only needs to be done explicitly with older versions of the SSL
         * library. On newer versions, errors strings are loaded during start
         * up. */
        SSL_load_error_strings();
index 7a666d4915a72795f905c6c593e117cf6ae80527..75176a6854eadb58c37844d41524f76ee5875ecc 100644 (file)
@@ -8579,7 +8579,7 @@ __LJMP static int hlua_register_init(lua_State *L)
        return 0;
 }
 
-/* This functio is an LUA binding. It permits to register a task
+/* This function is an LUA binding. It permits to register a task
  * executed in parallel of the main HAroxy activity. The task is
  * created and it is set in the HAProxy scheduler. It can be called
  * from the "init" section, "post init" or during the runtime.
index c522775336ef829fe73e3bdd85db77a43edb6cf0..d462ad54abb64cd2324b7eafec1ba20f27228871 100644 (file)
@@ -480,7 +480,7 @@ const char *http_get_reason(unsigned int status)
 
 /* Returns the ist string corresponding to port part (without ':') in the host
  * <host>, IST_NULL if no ':' is found or an empty IST if there is no digit. In
- * the last case, the result is the original ist trimed to 0. So be sure to test
+ * the last case, the result is the original ist trimmed to 0. So be sure to test
  * the result length before doing any pointer arithmetic.
 */
 struct ist http_get_host_port(const struct ist host)
index 7cfaca4a4d0feff4c2d11cd85f976320f01b3f86..5cb0b2948fa61fa3e3a995a507a50470d7841179 100644 (file)
@@ -389,7 +389,7 @@ int http_replace_req_uri(struct htx *htx, const struct ist uri)
                goto fail;
 
        sl = http_get_stline(htx);
-       ALREADY_CHECKED(sl); /* the stline exists because http_replace_stline() succeded */
+       ALREADY_CHECKED(sl); /* the stline exists because http_replace_stline() succeeded */
 
        sl->flags &= ~HTX_SL_F_NORMALIZED_URI;
        if (!http_update_host(htx, sl, uri))
index 456b121b454621d8dff503a228c29117544f61f5..6696e51a367aa62b952a7bfa0a3b6804e8fa14b0 100644 (file)
@@ -462,7 +462,7 @@ void resolv_trigger_resolution(struct resolv_requester *req)
        if (resolvers->t && (res->status != RSLV_STATUS_VALID ||
            !tick_isset(res->last_resolution) || tick_is_expired(exp, now_ms))) {
                /* If the resolution is not running and the requester is a
-                * server, reset the resoltion timer to force a quick
+                * server, reset the resolution timer to force a quick
                 * resolution.
                 */
                if (res->step == RSLV_STEP_NONE &&