]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 7 Aug 2021 09:41:56 +0000 (14:41 +0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Aug 2021 10:37:59 +0000 (12:37 +0200)
This is 25th iteration of typo fixes

17 files changed:
CONTRIBUTING
INSTALL
doc/SPOE.txt
doc/configuration.txt
doc/internals/fd-migration.txt
include/import/ebmbtree.h
include/import/ebtree.h
reg-tests/lua/bad_http_clt_req_duration.vtc
src/cfgcond.c
src/ebmbtree.c
src/fcgi-app.c
src/fix.c
src/lb_fwrr.c
src/mux_fcgi.c
src/peers.c
src/xprt_quic.c
tests/exp/filltab25.c

index db89ef7bc1c2228ff79d5041cc9af7895d9d03e8..60a78baee224989ee7b596e5a7e6b0bb0eac0f6a 100644 (file)
@@ -523,7 +523,7 @@ do not think about them anymore after a few patches.
    should be able to tell whether or not a patch is likely to address an issue
    they are facing. Indicating what the code will do after the fix doesn't help
    if it does not say what problem is encountered without the patch. Note that
-   in some cases the bug is purely theorical and observed by reading the code.
+   in some cases the bug is purely theoretical and observed by reading the code.
    In this case it's perfectly fine to provide an estimate about possible
    effects. Also, in HAProxy, like many projects which take a great care of
    maintaining stable branches, patches are reviewed later so that some of them
diff --git a/INSTALL b/INSTALL
index 447b9a086db2f0551571b9498cc76e411d68370c..cc5b894c0ceb2b678e420e9581ae8e458f9fc3ba 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -178,7 +178,7 @@ compilation errors. Also, some early versions of the GNU libc used to include a
 regex engine which could be slow or even crash on certain patterns.
 
 If you plan on importing a particularly heavy configuration involving a lot of
-regex, you may benefit from using some alternative regex implementations sur as
+regex, you may benefit from using some alternative regex implementations such as
 PCRE. HAProxy natively supports PCRE and PCRE2, both in standard and JIT
 flavors (Just In Time). The following options are available depending on the
 library version provided on your system :
index ba7aca016a41d872754b0a381de8d4e917db37bf..4792963f487cbfa3526ce64f5d398984cd34a762 100644 (file)
@@ -450,7 +450,7 @@ timeout idle <timeout>
 timeout processing <timeout>
   Set the maximum time to wait for a stream to process an event, i.e to acquire
   a stream to talk with an agent, to encode all messages, to send the NOTIFY
-  frame, to receive the corrsponding acknowledgement and to process all
+  frame, to receive the corresponding acknowledgement and to process all
   actions. It is applied on the stream that handle the client and the server
   sessions.
 
index bb4b4fc352cb6df12db78c33cfe7a5eb5f79bb21..556e97731f9277ff2917bc4a7b4127bfda34d093 100644 (file)
@@ -813,7 +813,7 @@ expression made of any combination of:
   - a non-nul integer (e.g. '1'), always returns "true".
   - a predicate optionally followed by argument(s) in parenthesis.
   - a condition placed between a pair of parenthesis '(' and ')'
-  - a question mark ('!') preceeding any of the non-empty elements above, and
+  - a question mark ('!') preceding any of the non-empty elements above, and
     which will negate its status.
   - expressions combined with a logical AND ('&&'), which will be evaluated
     from left to right until one returns false
@@ -17798,11 +17798,11 @@ fc_conn_err : integer
   Returns the ID of the error that might have occurred on the current
   connection. Any strictly positive value of this fetch indicates that the
   connection did not succeed and would result in an error log being output (as
-  decribed in section 8.2.5). See the "fc_conn_err_str" fetch for a full list of
+  described in section 8.2.5). See the "fc_conn_err_str" fetch for a full list of
   error codes and their corresponding error message.
 
 fc_conn_err_str : string
-  Returns an error message decribing what problem happened on the current
+  Returns an error message describing what problem happened on the current
   connection, resulting in a connection failure. This string corresponds to the
   "message" part of the error log format (see section 8.2.5). See below for a
   full list of error codes and their corresponding error messages :
index 010431d28fbbc9ea57aed169966c173267053eca..aaddad3671f057e363bb19604869651a110cff34 100644 (file)
@@ -60,7 +60,7 @@ ones, with their respective sequences:
       allowed to run anymore. The tasks retrieve their execution context from
       the scheduler in the arguments, but will check the tasks' context from
       the structure under the lock to detect this possible change, and abort.
-    - at this point the takeover suceeded, the idle_conns_lock is released and
+    - at this point the takeover succeeded, the idle_conns_lock is released and
       the connection and its FD are now owned by the caller
 
   2) poll report: happens on late rx, shutdown or error on idle conns
@@ -81,7 +81,7 @@ ones, with their respective sequences:
     - check the task/tasklet's context to verify that no recently completed
       takeover() stole the connection. If it's NULL, the connection was lost,
       the lock is released and the task/tasklet killed. Otherwise it is
-      guaranted that no other thread may use that connection (current takeover
+      guaranteed that no other thread may use that connection (current takeover
       candidates are waiting on the lock, previous owners waking from poll()
       lost their bit in the thread_mask and will not touch the FD).
     - the connection is removed from the idle conns list. From this point on,
index 23ef5541fddc8cd2c4e1c8e038049d76d6316ac2..f99c16ba9a4b1d4ea58fa751d18f25ac083a7d82 100644 (file)
@@ -566,7 +566,7 @@ static forceinline struct ebmb_node *__ebmb_lookup_prefix(struct eb_root *root,
 
 /* Insert ebmb_node <new> into a prefix subtree starting at node root <root>.
  * Only new->key and new->pfx need be set with the key and its prefix length.
- * Note that bits between <pfx> and <len> are theorically ignored and should be
+ * Note that bits between <pfx> and <len> are theoretically ignored and should be
  * zero, as it is not certain yet that they will always be ignored everywhere
  * (eg in bit compare functions).
  * The ebmb_node is returned.
index 36fcef50773d4d083d159b418bab73bdca55d105..9e5c48827bde2b95a58f6953fa60e191870590be 100644 (file)
@@ -32,7 +32,7 @@
 
   Eg, to store 8, 10, 12, 13, 14 :
 
-             ultree          this theorical tree
+             ultree          this theoretical tree
 
                8                   8
               / \                 / \
index 4952f61ff45afe4e3eec8d6b92bc77b469529f3d..119f7f670df7d67209a9896e82eb85865b1c6882 100644 (file)
@@ -16,7 +16,7 @@
 #       applet:start_response()
 #   end)
 #
-# This had as a consequence to log %TR field with approximatively the same value as
+# This had as a consequence to log %TR field with approximately the same value as
 # the LUA sleep time.
 
 varnishtest "LUA bug"
index 50ba3dfab8568e3d4147a70d5ec473f69a66a47c..4654c1be8a41dbf29b93cfdc94c5f75a45180706 100644 (file)
@@ -323,7 +323,7 @@ int cfg_parse_cond_and(const char **text, struct cfg_cond_and **expr, char **err
 
        /* ret=1, we have a term in the left hand set */
 
-       /* find an optionnal '&&' */
+       /* find an optional '&&' */
        while (*in == ' ' || *in == '\t')
                in++;
 
@@ -396,7 +396,7 @@ int cfg_parse_cond_expr(const char **text, struct cfg_cond_expr **expr, char **e
 
        /* ret=1, we have a sub-expr in the left hand set */
 
-       /* find an optionnal '||' */
+       /* find an optional '||' */
        while (*in == ' ' || *in == '\t')
                in++;
 
index 4a1bfc5682dd58a55bb9360118853b4fce95f83e..a3de9a1906e6977ad69b9e6039f2774215b558e7 100644 (file)
@@ -63,7 +63,7 @@ ebmb_lookup_prefix(struct eb_root *root, const void *x, unsigned int pfx)
 
 /* Insert ebmb_node <new> into a prefix subtree starting at node root <root>.
  * Only new->key and new->pfx need be set with the key and its prefix length.
- * Note that bits between <pfx> and <len> are theorically ignored and should be
+ * Note that bits between <pfx> and <len> are theoretically ignored and should be
  * zero, as it is not certain yet that they will always be ignored everywhere
  * (eg in bit compare functions).
  * The ebmb_node is returned.
index 8bbfd1043c13e3fb7906e1f9e5beb408e2af65c5..8d180274a3464ca6bb43035be77fecac472ebd48 100644 (file)
@@ -44,7 +44,7 @@ DECLARE_STATIC_POOL(pool_head_fcgi_hdr_rule, "fcgi_hdr_rule", sizeof(struct fcgi
 /**************************************************************************/
 /* Makes a fcgi parameter name (prefixed by ':fcgi-') with <name> (in
  * lowercase). All non alphanumeric character are replaced by an underscore
- * ('_'). The result is copied into <dst>. the corrsponding ist is returned.
+ * ('_'). The result is copied into <dst>. the corresponding ist is returned.
  */
 static struct ist fcgi_param_name(char *dst, const struct ist name)
 {
index 3ad3f2e8bf0a8d3df5f1b39f08dddc03def485cd..abf3119cd2a2bd971dd5bbb591e35e3d7cd4fdc9 100644 (file)
--- a/src/fix.c
+++ b/src/fix.c
@@ -246,7 +246,7 @@ struct ist fix_tag_value(const struct ist msg, unsigned int tagid)
                if (!id)
                        goto not_found_or_invalid;
                if (id == tagid) {
-                       /* <tagId> found, return the corrsponding value */
+                       /* <tagId> found, return the corresponding value */
                        return v;
                }
 
index 74c7fb244c381885147dee2c75b1bbe3515e0621..a762623f331527ab795525961447644a7545c13f 100644 (file)
@@ -340,7 +340,7 @@ static void fwrr_queue_srv(struct server *s)
        grp = (s->flags & SRV_F_BACKUP) ? &p->lbprm.fwrr.bck : &p->lbprm.fwrr.act;
 
        /* Delay everything which does not fit into the window and everything
-        * which does not fit into the theorical new window.
+        * which does not fit into the theoretical new window.
         */
        if (!srv_willbe_usable(s)) {
                fwrr_remove_from_tree(s);
index 1be7b96f845f5f35e59d5285aa660522f32ee23e..61142ab5f328d1d1fb6239b7f46de7dc47bca970 100644 (file)
@@ -1375,7 +1375,7 @@ static int fcgi_set_default_param(struct fcgi_conn *fconn, struct fcgi_strm *fst
                        goto check_index;
 
                /* If some special characters are found in the decoded path (\n
-                * or \0), the PATH_INFO regex cannot match. This is theorically
+                * or \0), the PATH_INFO regex cannot match. This is theoretically
                 * valid, but probably unexpected, to have such characters. So,
                 * to avoid any surprises, an error is triggered in this
                 * case.
index e14f1b8e75b1e7edba9052c52b9d38d69059549a..6a9b0df9e0202a2fd6348466ec9a2ac3893a9d42 100644 (file)
@@ -951,7 +951,7 @@ static int peer_prepare_switchmsg(char *msg, size_t size, struct peer_prep_param
                                 */
                                intencode(st->table->data_nbelem[data_type], &chunkq);
 
-                               /* for array of freq counters, there is an additionnal
+                               /* for array of freq counters, there is an additional
                                 * period parameter to encode
                                 */
                                if (stktable_data_types[data_type].std_type == STD_T_FRQP)
@@ -2179,7 +2179,7 @@ static inline int peer_treat_definemsg(struct appctx *appctx, struct peer *p,
                goto ignore_msg;
        }
 
-       /* Check if there there is the additionnal expire data */
+       /* Check if there there is the additional expire data */
        intdecode(msg_cur, msg_end);
        if (*msg_cur) {
                uint64_t data_type;
@@ -2205,7 +2205,7 @@ static inline int peer_treat_definemsg(struct appctx *appctx, struct peer *p,
                                        /* check if the data_type match the current from the bitfield */
                                        if (type != data_type) {
                                                p->remote_table = NULL;
-                                               TRACE_PROTO("meta data missmatch type", PEERS_EV_DEFMSG, NULL, p);
+                                               TRACE_PROTO("meta data mismatch type", PEERS_EV_DEFMSG, NULL, p);
                                                goto ignore_msg;
                                        }
 
@@ -2242,7 +2242,7 @@ static inline int peer_treat_definemsg(struct appctx *appctx, struct peer *p,
                                        /* check if the data_type match the current from the bitfield */
                                        if (type != data_type) {
                                                p->remote_table = NULL;
-                                               TRACE_PROTO("meta data missmatch type", PEERS_EV_DEFMSG, NULL, p);
+                                               TRACE_PROTO("meta data mismatch type", PEERS_EV_DEFMSG, NULL, p);
                                                goto ignore_msg;
                                        }
 
index fea9a01586e60e15a8f2227cac612b382cf146ca..e4609d34131fd68cd5cb45b3241929c6439ee0f6 100644 (file)
@@ -1725,7 +1725,7 @@ static int qc_prep_hdshk_pkts(struct quic_conn_ctx *ctx)
        reuse_wbuf = 0;
        wbuf = q_wbuf(qc);
        qel = &qc->els[tel];
-       /* When entering this function, the writter buffer must be empty.
+       /* When entering this function, the writer buffer must be empty.
         * Most of the time it points to the reader buffer.
         */
        while ((q_buf_empty(wbuf) || reuse_wbuf)) {
index 956e3b549c177d4996a20407570bf72d36df5057..1197143256e1f1051eb270172cf0e4f619e07f0a 100644 (file)
@@ -58,7 +58,7 @@ static inline void dequeue_srv(struct srv *s) {
 void put_srv(struct srv *s) {
        if (s->w <= 0 ||
            s->next >= 2*sw ||    /* delay everything which does not fit into the window */
-           s->next >= sw+nsw) {  /* and everything which does not fit into the theorical new window */
+           s->next >= sw+nsw) {  /* and everything which does not fit into the theoretical new window */
                /* put into next tree */
                s->next -= sw; // readjust next in case we could finally take this back to current.
                queue_by_weight_0(next_tree, s);
@@ -348,7 +348,7 @@ main(int argc, char **argv) {
                                s->w = w;
 
                                /* we must measure how far we are from the end of the current window
-                                * and try to fit their as many entries as should theorically be.
+                                * and try to fit their as many entries as should theoretically be.
                                 */
 
                                //s->w = s->w * (2*sw - p) / sw;