]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlia Shipitsin <chipitsine@gmail.com>
Tue, 1 Apr 2025 20:44:54 +0000 (22:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Apr 2025 09:12:20 +0000 (11:12 +0200)
code, comments and doc actually.

48 files changed:
CONTRIBUTING
addons/promex/README
dev/gdb/ebtree.gdb
doc/configuration.txt
doc/design-thoughts/numa-auto.txt
doc/lua-api/index.rst
doc/management.txt
include/haproxy/connection-t.h
include/haproxy/connection.h
include/haproxy/global-t.h
include/haproxy/h1_htx.h
include/haproxy/http_ana-t.h
include/haproxy/openssl-compat.h
include/haproxy/proxy-t.h
include/haproxy/quic_cc-t.h
include/haproxy/quic_pacing-t.h
include/haproxy/sc_strm.h
include/haproxy/spoe-t.h
include/import/cebtree-prv.h
reg-tests/compression/basic.vtc
src/activity.c
src/backend.c
src/cfgparse-global.c
src/cfgparse-quic.c
src/cpu_topo.c
src/haproxy.c
src/hlua.c
src/http_act.c
src/http_ext.c
src/jws.c
src/mux_h1.c
src/mux_h2.c
src/mux_quic.c
src/proto_quic.c
src/proxy.c
src/queue.c
src/quic_cc_bbr.c
src/quic_conn.c
src/quic_rx.c
src/quic_stream.c
src/quic_tx.c
src/sample.c
src/sink.c
src/sock.c
src/ssl_ckch.c
src/stats-proxy.c
src/stick_table.c
src/tools.c

index 60a78baee224989ee7b596e5a7e6b0bb0eac0f6a..8fae24a08cc723a643f9572447d84622a9605dda 100644 (file)
@@ -1010,7 +1010,7 @@ you notice you're already practising some of them:
   - continue to send pull requests after having been explained why they are not
     welcome.
 
-  - give wrong advices to people asking for help, or sending them patches to
+  - give wrong advice to people asking for help, or sending them patches to
     try which make no sense, waste their time, and give them a bad impression
     of the people working on the project.
 
index 6226e62afaee63c95bfa4c40af6b48f9199cf26b..44a298848d214b2f8c329c036230715209a29773 100644 (file)
@@ -94,7 +94,7 @@ name must be preceded by a minus character ('-'). Here are examples:
 * Add section description as label for all metrics
 
 It is possible to set a description in global and proxy sections, via the
-"description" directive. The global descrption is exposed if it is define via
+"description" directive. The global description is exposed if it is define via
 the "haproxy_process_description" metric. But the descriptions provided in proxy
 sections are not dumped. However, it is possible to add it as a label for all
 metrics of the corresponding section, including the global one. To do so,
index c7a6b943db5b6761c3db0fb132e33ec597aeef9e..a6b03e949e0b81ed5649014e0e7db8f544f87d89 100644 (file)
@@ -25,7 +25,7 @@ end
 
 # returns $node filled with the first node of ebroot $arg0
 define ebtree_first
-  # browse ebtree left until encoutering leaf
+  # browse ebtree left until encountering leaf
   set $node = (struct eb_node *)$arg0->b[0]
   while 1
     _ebtree_set_tag_node $node
@@ -76,7 +76,7 @@ end
 
 # returns $node filled with the first node of ebroot $arg0
 define ebsctree_first
-  # browse ebsctree left until encoutering leaf
+  # browse ebsctree left until encountering leaf
   set $node = (struct eb32sc_node *)$arg0->b[0]
   while 1
     _ebsctree_set_tag_node $node
index 868bdaeecf22ede48eeb7ae377fe2cbceed5b758..1571b9340e58ae6bb76edd98ee943eef8b0483db 100644 (file)
@@ -1961,7 +1961,7 @@ cpu-policy <policy>
   thread groups.
 
   This mapping is normally performed using the "cpu-map" directive, though it
-  can be particularly difficult to maintain on heterogenous systems.
+  can be particularly difficult to maintain on heterogeneous systems.
 
   The "cpu-policy" directive chooses between a small number of allocation
   policies which one to use instead, when "cpu-map" is not used. The following
@@ -4223,7 +4223,7 @@ tune.max-rules-at-once <number>
   cpu-demanding actions (e.g.: actions that work on content) may create thread
   contention as all the rules from a given ruleset are evaluated under the same
   polling loop if the evaluation is not interrupted. This option ensures that no
-  more than <number> number of rules may be excecuted under the same polling
+  more than <number> number of rules may be executed under the same polling
   loop for content-oriented rulesets (those that already support yielding due
   to content inspection). What it does is that it forces the evaluating function
   to yield, so that it comes back on the next polling loop to continues the
@@ -4883,9 +4883,9 @@ subsystem. This will dump debug messages about a specific subsystem. It is a
 very powerful tool to diagnose issues. Traces can be dynamically configured via
 the CLI. It is also possible to predefined some settings in the configuration
 file, in dedicated "traces" sections. More details about traces can be found in
-the management guide. It remains a developper tools used during complex
+the management guide. It remains a developer tools used during complex
 debugging sessions.  It is pretty verbose and have a cost, so use it with
-caution. And because it is a developper tool, there is no warranty about the
+caution. And because it is a developer tool, there is no warranty about the
 backward compatibility of this section.
 
 traces
@@ -5993,7 +5993,7 @@ specified in a previous "defaults" section. Keywords supported in defaults
 sections marked with "(!)" are only supported in named defaults sections, not
 anonymous ones.
 
-Note: Some dangerous and not recommanded directives are intentionnaly not
+Note: Some dangerous and not recommended directives are intentionnaly not
       listed in the following matrix. It is on purpose. These directives are
       documentated. But by not listing them below is one more way to discourage
       anyone to use it.
@@ -7938,7 +7938,7 @@ hash-preserve-affinity { always | maxconn | maxqueue }
 
   The following values can be specified:
 
-    - "always"   : this is the default stategy. A stream is assigned to a
+    - "always"   : this is the default strategy. A stream is assigned to a
                    server based on hashing irrespective of whether the server
                    is currently saturated.
 
@@ -17991,8 +17991,8 @@ agent-check
     to set the weight of a server. Setting it with the "weight:" prefix is
     preferred.
 
-  - The string "weight:" following by an positive interger or a positive
-    interger percentage, with no space. If the value ends with the '%' sign,
+  - The string "weight:" following by an positive integer or a positive
+    integer percentage, with no space. If the value ends with the '%' sign,
     then the new weight will be proportional to the initially weight of the
     server. Otherwise, the value is considered as an absolute weight and must
     be between 0 and 256. Servers which are part of a farm running a static
@@ -22242,7 +22242,7 @@ when(<condition>[,<args>...])
   some rarely needed data that should only be emitted under certain conditions,
   such as debugging information when an error is met.
 
-  The condition is made of a keyword among the list below, optionally preceeded
+  The condition is made of a keyword among the list below, optionally preceded
   by an exclamation mark ('!') to negate it, and optionally suffixed by some
   arguments specific to that condition:
 
index c58695b6599370ef509a81517732c7f3cd158311..6f25394f93f0ff2259515ac2d070407180c2dab3 100644 (file)
@@ -1326,7 +1326,7 @@ Problem: we need to set the restrictions first to eliminate undesired CPUs,
          is considered the best CPUs. So the preference really looks like
          a different setting.
 
-More precisely, the final stategy involves multiple criteria. For example,
+More precisely, the final strategy involves multiple criteria. For example,
 let's say that the number of threads is set to 4 and we've restricted ourselves
 to using the first thread of each CPU core. We're on an EPYC74F3, there are 3
 cores per CCX. One algorithm (resource) would create one group with 3 threads
@@ -1444,7 +1444,7 @@ for example. However not all boards report their cluster number (see CIX-P1
 above). However the info about the capacity still allows to figure that and
 should probably be used for that. At this point it would seem logical to say
 that the cluster number is re-adjusted based on the claimed capacity, at
-least to avoid accidentally mixing workloads on heterogenous cores. But
+least to avoid accidentally mixing workloads on heterogeneous cores. But
 sorting by cluster number might not necessarily work if allocated randomly.
 So we might need a distinct metric that doesn't require to override the
 system's numbering, like a "set", "group", "team", "bond", "bunch", "club",
index 11de93882e04cca2cdd5b88b449ad84593f704a8..456f915d4f60c02c057a013e48dc25852387de7b 100644 (file)
@@ -3464,7 +3464,7 @@ Patref class
   in case of duplicated entries, only the first matching entry is returned.
 
   .. Warning::
-     Not meant to be shared bewteen multiple contexts. If multiple contexts
+     Not meant to be shared between multiple contexts. If multiple contexts
      need to work on the same pattern reference, each context should have
      its own patref object.
 
@@ -3494,7 +3494,7 @@ Patref class
 .. js:function:: Patref.commit(ref)
 
   Tries to commit pending Patref object updates, that is updates made to the
-  local object will be committed to the underlying patter reference storage
+  local object will be committed to the underlying pattern reference storage
   in an atomic manner upon success. Upon failure, local pending updates are
   lost. Upon success, all other pending updates on the pattern reference
   (e.g.: "prepare" from the cli or from other Patref Lua objects) started
index 5d4ca5681557a36c4ca28bf4a8a378c628df7f23..face1c89c918f4c195e0cb411a4c1075c2aca831 100644 (file)
@@ -3339,7 +3339,7 @@ show sess [<options>*]
   output reports less entries than really exist because it will dump all
   existing streams up to the last one that was created before the command was
   entered; those which die in the mean time will not appear.
-  For supported opitons, see below.
+  For supported options, see below.
 
 show sess [<id> | all | help] [<options>*]
   Display a lot of internal information about the matching streams. The command
@@ -3807,7 +3807,7 @@ show ssl sni [-f <frontend>] [-A]
 
   The 'SNI' column shows the SNI, it can be either a CN, a SAN or a filter from a crt-list.
   The default certificates of a bind line, (which are either declared
-  explicitely by 'default-crt' or is implicitely the first certificate of a bind
+  explicitly by 'default-crt' or is implicitly the first certificate of a bind
   line when no 'strict-sni' is used) shows the '*' character in the SNI column.
 
   The 'Negative Filter' column is the list of negative filters associated to a
index 98f6cc4711aff2993e0608515b73f1bf045de391..62808dfa99063af87acac825b0ce0681848e6ef1 100644 (file)
@@ -332,7 +332,7 @@ enum proto_proxy_side {
 
 /* ctl command used by mux->ctl() */
 enum mux_ctl_type {
-       MUX_CTL_STATUS, /* Expects an int as output, sets it to a combinaison of MUX_CTL_STATUS flags */
+       MUX_CTL_STATUS, /* Expects an int as output, sets it to a combination of MUX_CTL_STATUS flags */
        MUX_CTL_EXIT_STATUS, /* Expects an int as output, sets the mux exist/error/http status, if known or 0 */
        MUX_CTL_REVERSE_CONN, /* Notify about an active reverse connection accepted. */
        MUX_CTL_SUBS_RECV, /* Notify the mux it must wait for read events again  */
index a76f0ac1365170e30b0c906be5cc43769d59a571..2963ec076c655a0fabc15a6a4d5651eb4d519f86 100644 (file)
@@ -784,7 +784,7 @@ static inline const char *tevt_evts2str(uint32_t evts)
                if (!evt)
                        continue;
 
-               /* Backend location are displayed in captial letter */
+               /* Backend location are displayed in capital letter */
                is_back = !!((evt >> 4) & 0x8);
                switch ((enum term_event_loc)((evt >> 4) & ~0x8)) {
                        case tevt_loc_fd:   tevt_evts_str[idx++] = (is_back ? 'F' : 'f'); break;
index e54a388a1bc0f1d15ccf872d729caa66647e86a4..a31112fa81ea210170d5ed7c1153f895ee60ef50 100644 (file)
@@ -169,7 +169,7 @@ struct global {
        unsigned char cluster_secret[16]; /* 128 bits of an SHA1 digest of a secret defined as ASCII string */
        struct {
                int maxpollevents; /* max number of poll events at once */
-               int max_rules_at_once; /* max number of rules excecuted in a single evaluation loop */
+               int max_rules_at_once; /* max number of rules executed in a single evaluation loop */
                int maxaccept;     /* max number of consecutive accept() */
                int options;       /* various tuning options */
                uint debug;        /* various debugging options (GDBG_*) */
index 61b96e084e475b08be5b6c5aef8f40bb108daa63..ae67c8fdf59c4615470f552b949ad3daec771a03 100644 (file)
@@ -38,7 +38,7 @@ int h1_parse_msg_tlrs(struct h1m *h1m, struct htx *dsthtx,
                      struct buffer *srcbuf, size_t ofs, size_t max);
 
 /* Returns the URI of an HTX message in the most common format for a H1 peer. It
- * is the path part of an absolute URI when the URI was normalized, ortherwise
+ * is the path part of an absolute URI when the URI was normalized, otherwise
  * it is the whole URI, as received. Concretely, it is only a special case for
  * URIs received from H2 clients, to be able to send a relative path the H1
  * servers.
index 10b8273d1420aaf194f481bb14b5be0a7c91986e..b2937e86cb8464030cf6d96cd1460b84cbe15730 100644 (file)
@@ -168,7 +168,7 @@ enum {
        REDIRECT_FLAG_FROM_REQ = 4,     /* redirect rule on the request path */
        REDIRECT_FLAG_IGNORE_EMPTY = 8, /* silently ignore empty location expressions */
        REDIRECT_FLAG_KEEP_QS = 16,     /* append the query string to location, if any */
-       REDIRECT_FLAG_COOKIE_FMT = 32,  /* The cookie value is a log-format stirng*/
+       REDIRECT_FLAG_COOKIE_FMT = 32,  /* The cookie value is a log-format string */
 };
 
 /* Redirect types (location, prefix, extended ) */
index 360cf771657619035d89a1d63f68a2cf20e3b5e5..d7f0830f2e18a4b9d5f66430e19f4a3a3f8106a4 100644 (file)
@@ -408,7 +408,7 @@ static inline unsigned long ERR_peek_error_func(const char **func)
 #define SSL_OP_CIPHER_SERVER_PREFERENCE 0
 #endif
 
-/* needs OpenSSL >= 0.9.7 and renegotation options on WolfSSL */
+/* needs OpenSSL >= 0.9.7 and renegotiation options on WolfSSL */
 #if !defined(SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION) || \
         (defined(USE_OPENSSL_WOLFSSL) && !defined(HAVE_SECURE_RENEGOTIATION) && !defined(HAVE_SERVER_RENEGOTIATION_INFO))
 #undef  SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION
index 5ad420129036b9a4c8bbe36695058d676bcbca09..c2aeefed17c77cef073a18984fdfcbd991b3bf53 100644 (file)
@@ -299,7 +299,7 @@ struct error_snapshot {
        char buf[VAR_ARRAY];                    /* copy of the beginning of the message for bufsize bytes */
 };
 
-/* Each proxy will have one occurence of this structure per thread group */
+/* Each proxy will have one occurrence of this structure per thread group */
 struct proxy_per_tgroup {
        struct queue queue;
 } THREAD_ALIGNED(64);
index 5f55eb2ed790af5fcfa4dc58f41036e5575f1c10..b38ba7f2710b7305f49a05f61bcdcc6fe8658a3a 100644 (file)
@@ -123,7 +123,7 @@ struct quic_cc_path {
        uint32_t recovery_start_ts;
 };
 
-/* pacing can be optionnaly activated on top of the algorithm */
+/* pacing can be optionally activated on top of the algorithm */
 #define QUIC_CC_ALGO_FL_OPT_PACING           0x01
 
 struct quic_cc_algo {
index f910c78e05931ac66781f410bc46e235d57cbd13..77c82a2eb2b52323c00476832fbc2d4d12d6364d 100644 (file)
@@ -5,7 +5,7 @@
 #include <haproxy/quic_cc-t.h>
 
 struct quic_pacer {
-       const struct quic_cc *cc; /* Congestion controler algo used for this connection */
+       const struct quic_cc *cc; /* Congestion controller algo used for this connection */
        ullong cur;  /* Nanosecond timestamp of the last credit reloading */
        uint credit; /* Number of packets which can be emitted in a single burst */
 
index 7c9fb8adff0b6feba9e3fde9a6aedc4beaf2bd66..37460703fad21240bb74258ef0a7514d18be1301 100644 (file)
@@ -351,7 +351,7 @@ static inline void sc_sync_send(struct stconn *sc)
        else if (sc_ep_test(sc, SE_FL_T_APPLET)) {
                sc_applet_sync_send(sc);
                if (sc_oc(sc)->flags & CF_WRITE_EVENT) {
-                       /* Data was send, wake the applet up. It is safe to do so becasuse sc_applet_sync_send()
+                       /* Data was send, wake the applet up. It is safe to do so because sc_applet_sync_send()
                         * removes CF_WRITE_EVENT flag from the channel before trying to send data to the applet.
                         */
                        task_wakeup(__sc_appctx(sc)->t, TASK_WOKEN_OTHER);
index 2b91d14032b125cf2d2dec16d6f883fa39f91f9a..de762fcdcf77fa10c8b0de096ff9b22aa3aad501 100644 (file)
@@ -52,7 +52,7 @@
 
 /* All supported SPOP actions */
 enum spoe_action_type {
-       SPOP_ACT_T_NOOP = 0, /* internal action for ampty ACK */
+       SPOP_ACT_T_NOOP = 0, /* internal action for an empty ACK */
        SPOP_ACT_T_SET_VAR = 1,
        SPOP_ACT_T_UNSET_VAR,
        SPOP_ACT_TYPES,
index cd87472961dd54e6d9b2dc7a77ac4589055316f1..0309e789154a6a4240626d535d10affbca802878 100644 (file)
@@ -63,7 +63,7 @@
  *   the same split bit as its parent node, it is necessary its associated leaf
  *
  * When descending along the tree, it is possible to know that a search key is
- * not present, because its XOR with both of the branches is stricly higher
+ * not present, because its XOR with both of the branches is strictly higher
  * than the inter-branch XOR. The reason is simple : the inter-branch XOR will
  * have its highest bit set indicating the split bit. Since it's the bit that
  * differs between the two branches, the key cannot have it both set and
index 5d9eadabde00119bd860063c6877765a8f355d23..78ca61b8d592d6849c2aa6a9846c9e35f6a49ed0 100644 (file)
@@ -271,7 +271,7 @@ client c1 -connect ${h1_fe_gzip_sock} {
         expect resp.http.transfer-encoding == "<undef>"
         expect resp.bodylen == 100
 
-        # 7. Response alerady compressed by the server (with "Accept-Encoding")
+        # 7. Response already compressed by the server (with "Accept-Encoding")
         txreq -url "/c1.7" \
           -hdr "Accept-Encoding: gzip"
         rxresp
index 64ec5de93cb3529607f7dc5504428eb8f0eb33f9..51fea7e408d78d4f6b3df801effbf910b5bb278c 100644 (file)
@@ -88,7 +88,7 @@ static void *memprof_realloc_initial_handler(void *ptr, size_t size);
 static char *memprof_strdup_initial_handler(const char *s);
 static void  memprof_free_initial_handler(void *ptr);
 
-/* these ones are optional but may be used by some dependecies */
+/* these ones are optional but may be used by some dependencies */
 static char *memprof_strndup_initial_handler(const char *s, size_t n);
 static void *memprof_valloc_initial_handler(size_t sz);
 static void *memprof_pvalloc_initial_handler(size_t sz);
@@ -105,7 +105,7 @@ static void *(*memprof_realloc_handler)(void *ptr, size_t size)   = memprof_real
 static char *(*memprof_strdup_handler)(const char *s)             = memprof_strdup_initial_handler;
 static void  (*memprof_free_handler)(void *ptr)                   = memprof_free_initial_handler;
 
-/* these ones are optional but may be used by some dependecies */
+/* these ones are optional but may be used by some dependencies */
 static char *(*memprof_strndup_handler)(const char *s, size_t n)                 = memprof_strndup_initial_handler;
 static void *(*memprof_valloc_handler)(size_t sz)                                = memprof_valloc_initial_handler;
 static void *(*memprof_pvalloc_handler)(size_t sz)                               = memprof_pvalloc_initial_handler;
index d27baad9dca05425e91ed15edfecb4ef2e4d12b3..a753a0ef4f2d19f0d76d8e3df96ccdfd4be06ae7 100644 (file)
@@ -457,7 +457,7 @@ struct server *get_server_hh(struct stream *s, const struct server *avoid)
                                        break;
                        }
                        else if (*p == '.') {
-                               /* The pointer is rewinded to the dot before the
+                               /* The pointer is rewound to the dot before the
                                 * tld, we memorize the end of the domain and
                                 * can enter the domain processing. */
                                end = p;
index 8e698ba1efd0ba0e2ea9ce0002ed18b89e45da4f..ba69ed1af2dc9b184e29003427300b9417ba4de8 100644 (file)
@@ -836,7 +836,7 @@ discovery_kw:
                                        continue;
                                if (strcmp(kwl->kw[index].kw, args[0]) == 0) {
 
-                                       /* in MODE_DISCOVERY we read only the keywords, which contains the appropiate flag */
+                                       /* in MODE_DISCOVERY we read only the keywords, which contains the appropriate flag */
                                        if ((global.mode & MODE_DISCOVERY) && ((kwl->kw[index].flags & KWF_DISCOVERY) == 0 ))
                                                goto out;
 
@@ -1626,7 +1626,7 @@ static int cfg_parse_global_chroot(char **args, int section_type, struct proxy *
                                        file, line, args[0], args[1], strerror(errno));
                else if (errno == EACCES)
                        ha_diag_warning("parsing [%s:%d]: '%s': '%s': %s "
-                                       "(process is need to be started with root priviledges to be able to chroot).\n",
+                                       "(process is need to be started with root privileges to be able to chroot).\n",
                                        file, line, args[0], args[1], strerror(errno));
                else
                        ha_diag_warning("parsing [%s:%d]: '%s': '%s': stat() is failed: %s.\n",
index 3b7c6df2e39801bbd8ea536696fd6b028ed283b2..115684e10fc6697387eb044dc0413bb73c993909 100644 (file)
@@ -299,7 +299,7 @@ static int cfg_parse_quic_tune_setting(char **args, int section_type,
        if (strcmp(suffix, "cc.cubic.min-losses") == 0)
                global.tune.quic_cubic_loss_tol = arg - 1;
        else if (strcmp(suffix, "frontend.conn-tx-buffers.limit") == 0) {
-               memprintf(err, "'%s' keyword is now obsolote and has no effect. "
+               memprintf(err, "'%s' keyword is now obsolete and has no effect. "
                               "Use 'tune.quic.frontend.default-max-window-size' to limit Tx buffer allocation per connection.", args[0]);
                return 1;
        }
@@ -307,7 +307,7 @@ static int cfg_parse_quic_tune_setting(char **args, int section_type,
                global.tune.quic_frontend_glitches_threshold = arg;
        else if (strcmp(suffix, "frontend.max-data-size") == 0) {
                if ((errptr = parse_size_err(args[1], &arg))) {
-                       memprintf(err, "'%s': unexpected charater '%c' in size argument '%s'.",
+                       memprintf(err, "'%s': unexpected character '%c' in size argument '%s'.",
                                  args[0], *errptr, args[1]);
                        return -1;
                }
index 0d3354a6c718d09424fa4480751572573f442800..48837b1db0ab96e632ccf0fa340fcb5a1eae86d0 100644 (file)
@@ -344,7 +344,7 @@ int _cmp_cpu_index(const void *a, const void *b)
        if (l->idx > r->idx && r->idx >= 0)
                return  1;
 
-       /* exactly the same (e.g. absent, should not happend) */
+       /* exactly the same (e.g. absent, should not happen) */
        return 0;
 }
 
@@ -1355,7 +1355,7 @@ int cpu_detect_topology(void)
                /* First, let's check the cache hierarchy. On systems exposing
                 * it, index0 generally is the L1D cache, index1 the L1I, index2
                 * the L2 and index3 the L3. But sometimes L1I/D are reversed,
-                * and some CPUs also have L0 or L4. Maybe some heterogenous
+                * and some CPUs also have L0 or L4. Maybe some heterogeneous
                 * SoCs even have inconsistent levels between clusters... Thus
                 * we'll scan all entries that we can find for each CPU and
                 * assign levels based on what is reported. The types generally
index 8b59bb6af9a8b198a40c3f77683f65535ca2dc6a..6888e886e7f820a73aa7f28515eb6b93aaa11678 100644 (file)
@@ -2550,7 +2550,7 @@ static void run_master_in_recovery_mode(int argc, char **argv)
        mworker_run_master();
 }
 
-/* parse conf in disovery mode and set modes from config */
+/* parse conf in discovery mode and set modes from config */
 static void read_cfg_in_discovery_mode(int argc, char **argv)
 {
        struct cfgfile *cfg, *cfg_tmp;
@@ -2604,7 +2604,7 @@ static void read_cfg_in_discovery_mode(int argc, char **argv)
                exit(EXIT_FAILURE);
        }
 
-       /* "progam" sections, if there are any, were alredy parsed only by master
+       /* "program" sections, if there are any, were already parsed only by master
         * and programs are forked before calling postparser functions from
         * postparser list. So, all checks related to "program" section integrity
         * and sections vs MODE_MWORKER combinations should be done here.
@@ -3242,7 +3242,7 @@ int main(int argc, char **argv)
        if (backup_env() != 0)
                exit(EXIT_FAILURE);
 
-       /* parse conf in disovery mode and set modes from config */
+       /* parse conf in discovery mode and set modes from config */
        read_cfg_in_discovery_mode(argc, argv);
 
        /* From this stage all runtime modes are known. So let's do below some
@@ -3347,8 +3347,8 @@ int main(int argc, char **argv)
         * forked. Thus the current worker inherits ipc_fd[0]s from the previous
         * ones by it's parent, master, because we have to keep shared sockpair
         * ipc_fd[0] always opened in master (master CLI server is listening on
-        * this fd). It's safe to call close() at this point on these inhereted
-        * ipc_fd[0]s, as they are inhereted after master re-exec unbound, we
+        * this fd). It's safe to call close() at this point on these inherited
+        * ipc_fd[0]s, as they are inherited after master re-exec unbound, we
         * keep them like this during bind_listeners() call. So, these fds were
         * never referenced in the current worker's fdtab.
         */
@@ -3404,7 +3404,7 @@ int main(int argc, char **argv)
        }
 
         /* applies the renice value in the worker or standalone after configuration parsing
-         * but before chaning identity */
+         * but before changing identity */
         if (!master && global.tune.renice_runtime) {
                if (setpriority(PRIO_PROCESS, 0, global.tune.renice_runtime - 100) == -1) {
                        ha_warning("[%s.main()] couldn't set the runtime nice value to %d: %s\n",
index b9fee5f3c6d04239785e4338fcf626d60b283659..9bbc0bf5f53678482ac3497ca3cb5decbc65a809 100644 (file)
@@ -610,7 +610,7 @@ static unsigned int hlua_nb_instruction = 0;
  *
  *  configured    | Number of
  *  instructions  | loops executed
- *  between two   | in milions
+ *  between two   | in millions
  *  forced yields |
  * ---------------+---------------
  *  10            | 160
index a24f5fe30bad95eff62d2ef924f645e8d77fa382..0bb61651887190ed30505777a64e09fde30585d9 100644 (file)
@@ -41,7 +41,7 @@
 #include <haproxy/version.h>
 
 
-/* Release memory allocated by most of HTTP actions. Concretly, it releases
+/* Release memory allocated by most of HTTP actions. Concretely, it releases
  * <arg.http>.
  */
 static void release_http_action(struct act_rule *rule)
@@ -52,7 +52,7 @@ static void release_http_action(struct act_rule *rule)
        lf_expr_deinit(&rule->arg.http.fmt);
 }
 
-/* Release memory allocated by HTTP actions relying on an http reply. Concretly,
+/* Release memory allocated by HTTP actions relying on an http reply. Concretely,
  * it releases <.arg.http_reply>
  */
 static void release_act_http_reply(struct act_rule *rule)
index f74f1af901427c868b463ac91035459fbb6c337e..32399bfdfc34a2d64ab28d6496072cb9719fb5dc 100644 (file)
@@ -1882,8 +1882,8 @@ static int sample_conv_7239_n2np(const struct arg *args, struct sample *smp, voi
 
 /*
  * input: ipv4 address, ipv6 address or str (empty string will result in
- * "unknown" indentifier, else string will be translated to _obfs
- * indentifier, prefixed by '_'. Must comply with RFC7239 charset)
+ * "unknown" identifier, else string will be translated to _obfs
+ * identifier, prefixed by '_'. Must comply with RFC7239 charset)
  *
  * output: rfc7239-compliant forwarded header nodename
  */
@@ -1938,7 +1938,7 @@ static int sample_conv_7239_nn(const struct arg *args, struct sample *smp, void
 
 /*
  * input: unsigned integer or str (string will be translated to _obfs
- * indentifier, prefixed by '_'. Must comply with RFC7239 charset)
+ * identifier, prefixed by '_'. Must comply with RFC7239 charset)
  *
  * output: rfc7239-compliant forwarded header nodeport
  */
index 731e6ad46ab939443a644011e2abf4435c6e5ba7..feb03d7184a1a56dbdee6d7f451a2cd21a454771 100644 (file)
--- a/src/jws.c
+++ b/src/jws.c
@@ -454,7 +454,7 @@ int jws_b64_signature(EVP_PKEY *pkey, enum jwt_alg alg, char *b64protected, char
                const BIGNUM *r = NULL, *s = NULL;
                int bignum_len;
 
-               /* need to pad to byte size, essentialy for P-521 */
+               /* need to pad to byte size, essentially for P-521 */
                bignum_len = (EVP_PKEY_bits(pkey) + 7) / 8;
 
                if ((sig = d2i_ECDSA_SIG(NULL, (const unsigned char **)&sign->area, sign->data)) == NULL)
index bf7fbaca5e741751b42103f75443e8007dd37045..3412e76b6d248665cd5d9627cda629cea83cb47b 100644 (file)
@@ -660,7 +660,7 @@ static inline void h1c_report_term_evt(struct h1c *h1c, enum muxc_term_event_typ
 }
 
 /* Returns 1 if the H1 connection is alive (IDLE, EMBRYONIC, RUNNING or
- * DRAINING). Ortherwise 0 is returned.
+ * DRAINING). Otherwise 0 is returned.
  */
 static inline int h1_is_alive(const struct h1c *h1c)
 {
index 948ae26d3bc0f311acf76881c7762e48a73b85ae..7195c1599320053f4287891ba8289a7183ece40c 100644 (file)
@@ -5834,7 +5834,7 @@ next_frame:
                if ((unsigned)hdr.len > (unsigned)global.tune.bufsize) {
                        /* RFC7540#4.2: invalid frame length */
                        h2c_report_glitch(h2c, 1, "too large CONTINUATION frame");
-                       TRACE_STATE("too large CONTIUATION frame", H2_EV_RX_FRAME|H2_EV_RX_FHDR|H2_EV_RX_HDR|H2_EV_RX_CONT|H2_EV_H2C_ERR|H2_EV_PROTO_ERR, h2c->conn);
+                       TRACE_STATE("too large CONTINUATION frame", H2_EV_RX_FRAME|H2_EV_RX_FHDR|H2_EV_RX_HDR|H2_EV_RX_CONT|H2_EV_H2C_ERR|H2_EV_PROTO_ERR, h2c->conn);
                        h2c_error(h2c, H2_ERR_FRAME_SIZE_ERROR);
                        goto fail;
                }
index 5d76677e364c39b2822e96f8354c819faef0d0f7..eb6367b27858d9710c3a539787ca5271a6697505 100644 (file)
@@ -1529,7 +1529,7 @@ static void _qcc_send_stream(struct qcs *qcs, int urg)
        qcc_clear_frms(qcc);
 
        if (urg) {
-               /* qcc_emit_rs_ss() relies on resetted/aborted streams in send_list front. */
+               /* qcc_emit_rs_ss() relies on reset/aborted streams in send_list front. */
                BUG_ON(!(qcs->flags & (QC_SF_TO_RESET|QC_SF_TO_STOP_SENDING|QC_SF_TXBUB_OOB)));
 
                LIST_DEL_INIT(&qcs->el_send);
@@ -2637,7 +2637,7 @@ static int qcc_emit_rs_ss(struct qcc *qcc)
  *
  * This functions also serves to emit RESET_STREAM and STOP_SENDING frames. In
  * this case, frame is emitted immediately without using <qcc> tx frms. If an
- * error occured during this step, this is considered as fatal. Tx frms is
+ * error occurred during this step, this is considered as fatal. Tx frms is
  * cleared and 0 is returned.
  *
  * Returns the sum of encoded payload STREAM frames length. Note that 0 can be
index 26b2fda99c9d88a97715e5462c622e5b9c5dd422..a0e9812c7584d19413ac9e9d69e5c3388a871a27 100644 (file)
@@ -795,7 +795,7 @@ static int quic_test_gso(void)
  * mechanism. A message is notified in this case when running in diagnostic
  * mode.
  *
- * Returns ERR_NONE if every checks performed, wether or not some features are
+ * Returns ERR_NONE if every checks performed, whether or not some features are
  * not available. ERR_FATAL is reported if checks cannot be executed.
  */
 static int quic_test_socketopts(void)
index 67807d7e70231491193b985542c07a3e6b56787d..13be57e40d0dc5aade44213fa148e7a54ba9e7d9 100644 (file)
@@ -1936,7 +1936,7 @@ static int proxy_defproxy_cpy(struct proxy *curproxy, const struct proxy *defpro
 
        /* defproxy is const pointer, so we need to typecast log_steps to
         * drop the const in order to use EB tree API, please note however
-        * that the operations performed below should theorically be read-only
+        * that the operations performed below should theoretically be read-only
         */
        node = eb32_first((struct eb_root *)&defproxy->conf.log_steps);
        while (node) {
index 4af08d123a3147fc8512ca08324235fedc4e500e..62832f07ae692c006a4b048555c591e7adbca244 100644 (file)
@@ -413,7 +413,7 @@ int process_srv_queue(struct server *s)
         *
         * We'll dequeue MAX_SELF_USE_QUEUE items from the queue corresponding
         * to our thread group, then we'll get one from a different one, to
-        * be sure those actually get processsed too.
+        * be sure those actually get processed too.
         */
        while (non_empty_tgids != 0
               && (done < global.tune.maxpollevents || !s->served) &&
index f1e42629732cbdfcc2031586611a674e7359655b..9f686b983cfa163c3b8165ce90af73d42ba9d8fd 100644 (file)
@@ -256,7 +256,7 @@ struct bbr {
  * The camelcase naming convention is used by the BBR RFC for the function names
  * and constants. To helps in matching the code below with the RFC one, note
  * that all the function names have been translated this way. The uppercase
- * letters have been replaced by lowercase letters. The words have been seperated
+ * letters have been replaced by lowercase letters. The words have been separated
  * by underscores as follows:
  *
  *     ex: BBRMinPipeCwnd() -> bbr_min_pipe_cwnd()
index 77f28a4f284cbfead0644a83616666d24eadcd64..e636087c43c888ebb108e5e7f8534cb7567b5d01 100644 (file)
@@ -830,9 +830,9 @@ struct task *quic_conn_io_cb(struct task *t, void *context, unsigned int state)
                /* Note: if no token for address validation was received
                 * for a 0RTT connection, some 0RTT packet could still be
                 * waiting for HP removal AFTER the successful handshake completion.
-                * Indeed a successful handshake completion implicitely valids
+                * Indeed a successful handshake completion implicitly valids
                 * the peer address. In this case, one wants to process
-                * these ORTT packets AFTER the succesful handshake completion.
+                * these ORTT packets AFTER the successful handshake completion.
                 *
                 * On the contrary, when a token for address validation was received,
                 * release 0RTT packets still waiting for HP removal. These
index 27eebec0dbfd4f748db77f1b46b2e04e2565724a..94888f02e31ae9fbbed1dda9fd7cda565d984d64 100644 (file)
@@ -205,7 +205,7 @@ static int qc_pkt_decrypt(struct quic_conn *qc, struct quic_enc_level *qel,
 /* Handle <frm> frame whose packet it is attached to has just been acknowledged. The memory allocated
  * for this frame will be at least released in every cases.
  *
- * Returns 1 on sucess else 0.
+ * Returns 1 on success else 0.
  */
 static int qc_handle_newly_acked_frm(struct quic_conn *qc, struct quic_frame *frm)
 {
@@ -311,7 +311,7 @@ static void qc_newly_acked_pkts(struct quic_conn *qc, struct eb_root *pkts,
 
 /* Handle <newly_acked_pkts> list of newly acknowledged TX packets.
  *
- * Returns 1 on sucess else 0.
+ * Returns 1 on success else 0.
  */
 static int qc_handle_newly_acked_pkts(struct quic_conn *qc,
                                       unsigned int *pkt_flags, struct list *newly_acked_pkts)
index 293a2457a022c5d3ec735a3d2d335aa845c1c28d..71988c15d021f02be0bf2f499278154595240e97 100644 (file)
@@ -128,7 +128,7 @@ void qc_stream_desc_release(struct qc_stream_desc *stream,
                if (final_size < tail_offset)
                        b_sub(buf, tail_offset - final_size);
 
-               /* Release active buffer, or delete it immediatly if there is
+               /* Release active buffer, or delete it immediately if there is
                 * no data to acknowledge. Both functions will reset active
                 * buf pointer and invoke <notify_room> if necessary.
                 */
@@ -243,7 +243,7 @@ static int qc_stream_buf_store_ack(struct qc_stream_buf *buf,
 }
 
 /* Acknowledges data for buffer <buf> attached to <stream> instance. This covers
- * the range strating at <offset> and of length <len>, with <fin> sets for the
+ * the range starting at <offset> and of length <len>, with <fin> sets for the
  * last stream frame.
  *
  * Returns <buf> if there is still data to acknowledge or buffered ACK to
@@ -495,7 +495,7 @@ struct buffer *qc_stream_buf_realloc(struct qc_stream_desc *stream)
        /* This function is reserved to convert a big buffer to a smaller one. */
        BUG_ON(!stream->buf || !stream->buf->sbuf);
 
-       /* This function can only be used if targetted buffer is empty. */
+       /* This function can only be used if targeted buffer is empty. */
        BUG_ON(b_data(&stream->buf->buf));
 
        /* Release buffer */
index 06f851b4d60e8ef336ae66eb5c50730e844b0639..919fb12825eb356dbec77a81145d37dc3a080f91 100644 (file)
@@ -153,7 +153,7 @@ struct buffer *qc_get_txb(struct quic_conn *qc)
 
 /* Commit a datagram payload written into <buf> of length <length>. <first_pkt>
  * must contains the address of the first packet stored in the payload. When
- * GSO is used, several datagrams can be commited at once. In this case,
+ * GSO is used, several datagrams can be committed at once. In this case,
  * <length> must be the total length of all consecutive datagrams.
  *
  * Caller is responsible that there is enough space in the buffer.
@@ -1856,7 +1856,7 @@ static int qc_do_build_pkt(unsigned char *pos, const unsigned char *end,
                                 * its frames which were already acknowledeged.
                                 * See qc_stream_frm_is_acked()) called by qc_build_frms().
                                 * Note that qc_stream_frm_is_acked() logs a trace in this
-                                * case mentionning some frames were already acknowledged.
+                                * case mentioning some frames were already acknowledged.
                                 *
                                 * That said, the consequence must be the same: cancelling
                                 * the packet build as if there was not enough room in the
index ab44bfecc2d2a9adda7e19d6790281fba4970674..1e2ff7d2ee8e88b11ca3088770ffc0df26774d3a 100644 (file)
@@ -3619,7 +3619,7 @@ static int smp_check_concat(struct arg *args, struct sample_conv *conv,
 }
 
 /* Append delimiter (only to a non empty input) followed by the optional
- * variable contents concatenated with the optional sufix.
+ * variable contents concatenated with the optional suffix.
  */
 static int sample_conv_add_item(const struct arg *arg_p, struct sample *smp, void *private)
 {
index a12fe51d46b635836ea1ff1ffe8b3dd6bbd8f2fc..f349746642cd3164153bc30bc8665444a901b5cf 100644 (file)
@@ -676,7 +676,7 @@ static struct task *process_sink_forward(struct task * task, void *context, unsi
                while (sft) {
                        HA_SPIN_LOCK(SFT_LOCK, &sft->lock);
                        /* If appctx is NULL, start a new session and perform the appctx
-                        * assigment right away since the applet is not supposed to change
+                        * assignment right away since the applet is not supposed to change
                         * during the session lifetime. By doing the assignment now we
                         * make sure to start the session exactly once.
                         *
index feb05269123e4f91e83dbda402ced833934071b7..c6419a6daa9768d0939a13f21361b21e750df7c0 100644 (file)
@@ -957,7 +957,7 @@ int sock_conn_check(struct connection *conn)
                 *
                 * We have no explanation for now. Why epoll report the
                 * connection is closed while the connect() it able to validate
-                * it ? no idea. But, it seems reasonnable in this case, and if
+                * it ? no idea. But, it seems reasonable in this case, and if
                 * no error was reported, to remove the the HUP flag. At worst, if
                 * the connection is really closed, this will be reported later.
                 *
index 203d25270b29fcbadc7f5160ebbff9d727e7f92c..f26fdbbf13db34f74562c23cf72c12b9c277135a 100644 (file)
@@ -1604,7 +1604,7 @@ static void cli_release_show_sni(struct appctx *appctx)
 /* IO handler of "show ssl sni [<frontend>]".
  * It makes use of a show_sni_ctx context
  *
- * The fonction does loop over the frontend, the bind_conf and the sni_ctx.
+ * The function does loop over the frontend, the bind_conf and the sni_ctx.
  */
 static int cli_io_handler_show_sni(struct appctx *appctx)
 {
@@ -1652,7 +1652,7 @@ static int cli_io_handler_show_sni(struct appctx *appctx)
                                        else
                                                n = ebmb_first(&bind->sni_w_ctx);
                                }
-                               /* emty SNI tree, skip */
+                               /* empty SNI tree, skip */
                                if (!n)
                                        continue;
 
index c1e42facd4df796cc1f3d43358975a973fd2d676..d68a17b0ff44380a6c5baa09fcf84b4d3ba8d0d3 100644 (file)
@@ -96,7 +96,7 @@ const struct stat_col stat_cols_px[ST_I_PX_MAX] = {
        [ST_I_PX_HANAFAIL]      = ME_NEW_BE("hanafail",      NULL,                                 FN_COUNTER, FF_U64, failed_hana,            STATS_PX_CAP____S, "Total number of failed checks caused by an 'on-error' directive after an 'observe' condition matched"),
        [ST_I_PX_REQ_RATE]      = ME_NEW_FE("req_rate",      NULL,                                 FN_RATE,    FF_U32, req_per_sec,            STATS_PX_CAP__F__, "Number of HTTP requests processed over the last second on this object"),
        [ST_I_PX_REQ_RATE_MAX]                  = { .name = "req_rate_max",                .alt_name = "http_requests_rate_max",          .desc = "Highest value of http requests observed since the worker process started", .cap = STATS_PX_CAP__F__ },
-       /* Note: ST_I_PX_REQ_TOT is also diplayed on frontend but does not uses a raw counter value, see me_generate_field() for details. */
+       /* Note: ST_I_PX_REQ_TOT is also displayed on frontend but does not uses a raw counter value, see me_generate_field() for details. */
        [ST_I_PX_REQ_TOT]       = ME_NEW_BE("req_tot",       "http_requests_total",                FN_COUNTER, FF_U64, p.http.cum_req,         STATS_PX_CAP__FBS, "Total number of HTTP requests processed by this object since the worker process started"),
        [ST_I_PX_CLI_ABRT]      = ME_NEW_BE("cli_abrt",      "client_aborts_total",                FN_COUNTER, FF_U64, cli_aborts,             STATS_PX_CAP___BS, "Total number of requests or connections aborted by the client since the worker process started"),
        [ST_I_PX_SRV_ABRT]      = ME_NEW_BE("srv_abrt",      "server_aborts_total",                FN_COUNTER, FF_U64, srv_aborts,             STATS_PX_CAP___BS, "Total number of requests or connections aborted by the server since the worker process started"),
@@ -269,7 +269,7 @@ static struct field me_generate_field(const struct stat_col *col,
        }
 
        /* TODO Special case needed for ST_I_PX_REQ_TOT. It is defined as a
-        * generic column for backend side. Extra code required to diplay it on
+        * generic column for backend side. Extra code required to display it on
         * frontend side as an aggregate of values split by HTTP version.
         */
        if (idx == ST_I_PX_REQ_TOT && cap == STATS_PX_CAP_FE && !stat_file) {
index d143c5e8782b83e1125315acc52f1a181b85493d..bb73e5f699b60307cf4bab6d6f4d3a0e404806de 100644 (file)
@@ -162,7 +162,7 @@ int __stksess_kill(struct stktable *t, struct stksess *ts)
 }
 
 /*
- * Decrease the refcount of a stksess and relase it if the refcount falls to 0.
+ * Decrease the refcount of a stksess and release it if the refcount falls to 0.
  * Returns non-zero if deleted, zero otherwise.
  *
  * This function locks the corresponding table shard to proceed. When this
index 5cd89be9f46d8108b99707eb7179748a1ff07c89..7bffe5b07d0a9952ae218299f480feefbc084302 100644 (file)
@@ -5576,7 +5576,7 @@ const void *resolve_sym_name(struct buffer *buf, const char *pfx, const void *ad
                }
        }
 
-       /* if that's an exact match, no need to call dl_addr. This happends
+       /* if that's an exact match, no need to call dl_addr. This happens
         * when showing callback pointers for example, but not in backtraces.
         */
        if (!best_dist)