]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: assorted typo fixes in the code and comments
authorIlya Shipitsin <chipitsine@gmail.com>
Tue, 21 Nov 2023 18:54:16 +0000 (19:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Nov 2023 15:23:14 +0000 (16:23 +0100)
This is 37th iteration of typo fixes

66 files changed:
INSTALL
doc/SPOE.txt
doc/configuration.txt
doc/regression-testing.txt
examples/lua/mailers.lua
include/haproxy/applet.h
include/haproxy/channel.h
include/haproxy/connection-t.h
include/haproxy/global-t.h
include/haproxy/http_ana-t.h
include/haproxy/mqtt-t.h
include/haproxy/protobuf.h
include/haproxy/proxy-t.h
include/haproxy/quic_conn.h
include/haproxy/quic_openssl_compat-t.h
include/haproxy/quic_openssl_compat.h
include/haproxy/quic_tls.h
include/haproxy/sc_strm.h
include/haproxy/server-t.h
include/haproxy/shctx-t.h
include/haproxy/spoe-t.h
include/haproxy/stconn.h
include/haproxy/stream.h
include/haproxy/tcpcheck-t.h
reg-tests/connection/proxy_protocol_send_generic.vtc
reg-tests/http-messaging/truncated.vtc
src/acl.c
src/backend.c
src/cache.c
src/check.c
src/connection.c
src/debug.c
src/dynbuf.c
src/flt_bwlim.c
src/hlua.c
src/hlua_fcn.c
src/http_ana.c
src/http_fetch.c
src/htx.c
src/lb_chash.c
src/log.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/mux_quic.c
src/peers.c
src/pool.c
src/proto_reverse_connect.c
src/quic_conn.c
src/quic_openssl_compat.c
src/quic_sock.c
src/quic_ssl.c
src/quic_trace.c
src/quic_tx.c
src/ring.c
src/sample.c
src/session.c
src/signal.c
src/sink.c
src/ssl_ckch.c
src/ssl_sock.c
src/stconn.c
src/task.c
src/tcp_act.c
src/tools.c
src/vars.c

diff --git a/INSTALL b/INSTALL
index 8fc2426913e5189ee4f8ecfa3b8500997a994e8e..e1053e3c3f47dbf60210ab2c455f2d5ae93c50d5 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -516,7 +516,7 @@ As last resort, haproxy may be compiled against OpenSSL as follows:
 
 Note that QUIC 0-RTT is not supported by haproxy QUIC stack when built against
 OpenSSL. In addition to this compilation requirements, the QUIC listener
-bindings must be explicitely enabled with a specifig QUIC tuning parameter.
+bindings must be explicitly enabled with a specific QUIC tuning parameter.
 (see "limited-quic" global parameter of haproxy Configuration Manual).
 
 
@@ -748,7 +748,7 @@ them all in the DEFINE variable. Example:
 
 The ADDINC variable may be used to add some extra include paths; this is
 sometimes needed when cross-compiling. Similarly the ADDLIB variable may be
-used to specifify extra paths to library files. Example :
+used to specify extra paths to library files. Example :
 
   $ make TARGET=generic ADDINC=-I/opt/cross/include ADDLIB=-L/opt/cross/lib64
 
index 2001c1fa049e48251b3908a2104ef7ed34ca576d..cc6d8dd3d3fadcc3538bb537b4e7262e19c5915b 100644 (file)
@@ -93,7 +93,7 @@ spoe" line in a proxy section (frontend/backend/listen) :
       filter spoe [engine <name>] config <file>
       ...
 
-The "config" parameter is mandatory. It specififies the SPOE configuration
+The "config" parameter is mandatory. It specifies the SPOE configuration
 file. The engine name is optional. It can be set to declare the scope to use in
 the SPOE configuration. So it is possible to use the same SPOE configuration
 for several engines. If no name is provided, the SPOE configuration must not
@@ -119,7 +119,7 @@ scope in the SPOE configuration with the same name. You can have several SPOE
 scope in the same file. In each scope, you must define one and only one
 "spoe-agent" section to configure the SPOA linked to your SPOE and several
 "spoe-message" and "spoe-group" sections to describe, respectively, messages and
-group of messages sent to servers mananged by your SPOA.
+group of messages sent to servers managed by your SPOA.
 
 A SPOE scope starts with this kind of line :
 
index 898fe97c88984ca108bef7d26d88c3b2f811f511..073bb2f749bc661808e058b60cf1b2676bfdfc64 100644 (file)
@@ -12565,13 +12565,13 @@ stick-table type {ip | integer | string [len <length>] | binary [len <length>]}
                written to in addition to the source table. <wtable> must be of
                the same type as the table being defined and must have the same
                key length, and source table cannot be used as a target table
-               itself. Everytime an entry update will be received on the source
+               itself. Every time an entry update will be received on the source
                table through a peer, haproxy will try to refresh related
                <wtable> entry. If the entry doesn't exist yet, it will be
                created, else its values will be updated as well as its timer.
                Note that only types that are not involved in arithmetic ops such
                as server_id, server_key and gpt will be written to <wtable> to
-               prevent processed values from a remote table from intefering with
+               prevent processed values from a remote table from interfering with
                arithmetic operations performed on the local target table.
                (ie: prevent shared cumulative counter from growing indefinitely)
                One common use of this option is to be able to use sticking rules
@@ -15598,7 +15598,7 @@ quic-cc-algo { cubic | newreno }(max_window)
 quic-force-retry
   This is a QUIC specific setting which forces the use of the QUIC Retry feature
   for all the connection attempts to the configured QUIC listeners. It consists
-  in veryfying the peers are able to receive packets at the transport address
+  in verifying the peers are able to receive packets at the transport address
   they used to initiate a new connection, sending them a Retry packet which
   contains a token. This token must be sent back to the Retry packet sender,
   this latter being the only one to be able to validate the token. Note that QUIC
@@ -20405,7 +20405,7 @@ fc_pp_tlv(<id>) : string
   values to 256 bytes for optimal performance.
 
   Note that unlike fc_pp_authority and fc_pp_unique_id, fc_pp_tlv is able to
-  iterate over all occurances of a requested TLV in case there are duplicate
+  iterate over all occurrences of a requested TLV in case there are duplicate
   TLV IDs. The order of iteration matches the position in the PROXY protocol
   header. However, relying on duplicates should mostly be avoided as TLVs are
   typically assumed to be unique. Generally, finding duplicated TLV IDs
@@ -22611,7 +22611,7 @@ req_ver : string (deprecated)
   Common values are "1.0", "1.1", "2.0" or "3.0".
 
   In the case of http/2 and http/3, the value is not extracted from the HTTP
-  version in the request line but is determined by the negociated protocol
+  version in the request line but is determined by the negotiated protocol
   version.
 
   ACL derivatives :
index d8d71b530d2aa7abdff041cc936d89a0989fa2dd..5b070a4574cb2474ed38d3d12b6b6cf32d322f15 100644 (file)
@@ -53,7 +53,7 @@ typically set as follows:
 vtest program comes with interesting options. The most interesting are:
 
     -t  Timeout in seconds to abort the test if some launched program
-    -v  By default, vtest does not dump the outputs of processus it launched
+    -v  By default, vtest does not dump the outputs of process it launched
         when the test passes. With this option the outputs are dumped even
         when the test passes.
     -L  to always keep the temporary VTC directories.
@@ -77,7 +77,7 @@ failing in such cases. As a "cli" macro automatically generated, this
 "feature ignore_unknown_macro" is mandatory for each VTC file for haproxy.
 
 To make vtest capable of testing haproxy, two new VTC commands have been
-implemented: "haproxy" and "syslog". "haproxy" is used to start haproxy processus.
+implemented: "haproxy" and "syslog". "haproxy" is used to start haproxy process.
 "syslog" is used to start syslog servers (at this time, only used by haproxy).
 
 As haproxy cannot work without configuration file, a VTC file for haproxy must
@@ -107,7 +107,7 @@ the configuration file is temporarily written.
 A 'stats.sock' UNIX socket is also created in this directory. There is no need
 to declare such stats sockets in the -conf {...} section. The name of the parent
 directory of the haproxy instances working directories is stored in 'tmpdir'. In
-fact this is the working directory of the current vtest processus.
+fact this is the working directory of the current vtest process.
 
 There also exists 'testdir' macro which is the parent directory of the VTC file.
 It may be useful to use other files located in the same directory than the current
index 1c496d3af9b6919bdfb5345fe98384a93cd4e083..47a83560610f05eaf6527ca363b684343d0b070f 100644 (file)
@@ -43,7 +43,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
                         -- read line
                         ret = tcp:receive("*l")
                         if ret == nil then
-                                return false, "Connection unexpectly closed"
+                                return false, "Connection unexpectedly closed"
                         end
                         -- expected code
                         if string.match(ret, code) ~= nil then
@@ -73,7 +73,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
 
         if tcp:send("HELO " .. domain .. "\r\n") == nil then
                 tcp:close()
-                return false, "Connection unexpectly closed"
+                return false, "Connection unexpectedly closed"
         end
 
         ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -84,7 +84,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
 
         if tcp:send("MAIL FROM: <" .. from .. ">\r\n") == nil then
                 tcp:close()
-                return false, "Connection unexpectly closed"
+                return false, "Connection unexpectedly closed"
         end
 
         ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -95,7 +95,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
 
         if tcp:send("RCPT TO: <" .. to .. ">\r\n") == nil then
                 tcp:close()
-                return false, "Connection unexpectly closed"
+                return false, "Connection unexpectedly closed"
         end
 
         ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -106,7 +106,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
 
         if tcp:send("DATA\r\n") == nil then
                 tcp:close()
-                return false, "Connection unexpectly closed"
+                return false, "Connection unexpectedly closed"
         end
 
         ret, reason = smtp_wait_code(tcp, '^354 ')
@@ -117,7 +117,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
 
         if tcp:send(data .. "\r\n.\r\n") == nil then
                 tcp:close()
-                return false, "Connection unexpectly closed"
+                return false, "Connection unexpectedly closed"
         end
 
         ret, reason = smtp_wait_code(tcp, '^250 ')
@@ -128,7 +128,7 @@ function smtp_send_email(server, timeout, domain, from, to, data)
 
         if tcp:send("QUIT\r\n") == nil then
                 tcp:close()
-                return false, "Connection unexpectly closed"
+                return false, "Connection unexpectedly closed"
         end
 
         ret, reason = smtp_wait_code(tcp, '^221 ')
index 2e342f8900e89cbc6c9fc18d26ae0b87343269d2..b04ffd95caf17a90930e8e1cd29ef44ab5fcd1d1 100644 (file)
@@ -180,7 +180,7 @@ static inline int applet_putchk(struct appctx *appctx, struct buffer *chunk)
        if (ret < 0) {
                /* XXX: Handle all errors as a lack of space because callers
                 * don't handles other cases for now. So applets must be
-                * carefull to handles shutdown (-2) and invalid calls (-3) by
+                * careful to handles shutdown (-2) and invalid calls (-3) by
                 * themselves.
                 */
                sc_need_room(se->sc, chunk->data);
@@ -203,7 +203,7 @@ static inline int applet_putblk(struct appctx *appctx, const char *blk, int len)
        if (ret < -1) {
                /* XXX: Handle all errors as a lack of space because callers
                 * don't handles other cases for now. So applets must be
-                * carefull to handles shutdown (-2) and invalid calls (-3) by
+                * careful to handles shutdown (-2) and invalid calls (-3) by
                 * themselves.
                 */
                sc_need_room(se->sc, len);
@@ -227,7 +227,7 @@ static inline int applet_putstr(struct appctx *appctx, const char *str)
        if (ret == -1) {
                /* XXX: Handle all errors as a lack of space because callers
                 * don't handles other cases for now. So applets must be
-                * carefull to handles shutdown (-2) and invalid calls (-3) by
+                * careful to handles shutdown (-2) and invalid calls (-3) by
                 * themselves.
                 */
                sc_need_room(se->sc, strlen(str));
@@ -250,7 +250,7 @@ static inline int applet_putchr(struct appctx *appctx, char chr)
        if (ret == -1) {
                /* XXX: Handle all errors as a lack of space because callers
                 * don't handles other cases for now. So applets must be
-                * carefull to handles shutdown (-2) and invalid calls (-3) by
+                * careful to handles shutdown (-2) and invalid calls (-3) by
                 * themselves.
                 */
                sc_need_room(se->sc, 1);
index c6b3fae328c3e9fa7ff158dd26623725281c3cfc..17dd75fba6f984be265d4996cfe09f468b75f7b4 100644 (file)
@@ -34,7 +34,7 @@
 
 struct stconn;
 
-/* perform minimal intializations, report 0 in case of error, 1 if OK. */
+/* perform minimal initializations, report 0 in case of error, 1 if OK. */
 int init_channel();
 
 unsigned long long __channel_forward(struct channel *chn, unsigned long long bytes);
index afcc8ce51a01d10763553a74e44af3187f4a6440..e64527de364c3fbc6451f8bd005c0c74d91b8b24 100644 (file)
@@ -652,8 +652,8 @@ struct mux_proto_list {
 #define TLV_HEADER_SIZE 3
 
 #define HA_PP2_AUTHORITY_MAX 255  /* Maximum length of an authority TLV */
-#define HA_PP2_TLV_VALUE_128 128  /* E.g., accomodate unique IDs (128 B) */
-#define HA_PP2_TLV_VALUE_256 256  /* E.g., accomodate authority TLVs (currently, <= 255 B) */
+#define HA_PP2_TLV_VALUE_128 128  /* E.g., accommodate unique IDs (128 B) */
+#define HA_PP2_TLV_VALUE_256 256  /* E.g., accommodate authority TLVs (currently, <= 255 B) */
 #define HA_PP2_MAX_ALLOC     1024 /* Maximum TLV value for PPv2 to prevent DoS */
 
 struct proxy_hdr_v2 {
index e0f64d5cc1155aab1b000190eea3e5149144b511..f051832ae121402730dce3b316554b617676ab1e 100644 (file)
@@ -85,7 +85,7 @@
 #define GTUNE_LISTENER_MQ_OPT    (1<<28)
 #define GTUNE_LISTENER_MQ_ANY    (GTUNE_LISTENER_MQ_FAIR | GTUNE_LISTENER_MQ_OPT)
 
-extern int cluster_secret_isset; /* non zero means a cluster secret was initiliazed */
+extern int cluster_secret_isset; /* non zero means a cluster secret was initialized */
 
 /* SSL server verify mode */
 enum {
index 6d8022aa2da531971c78674fd85a17ad1889a367..41887a995c9dd0bfa3a362e0ef6ea8b58803e52b 100644 (file)
@@ -66,7 +66,7 @@
 
 #define TX_CON_WANT_TUN 0x00008000     /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */
 
-#define TX_CACHE_HAS_SEC_KEY 0x00010000 /* secondary key building succedeed */
+#define TX_CACHE_HAS_SEC_KEY 0x00010000 /* secondary key building succeeded */
 
 #define TX_USE_PX_CONN 0x00020000      /* Use "Proxy-Connection" instead of "Connection" */
 
@@ -177,7 +177,7 @@ enum {
        REDIRECT_TYPE_SCHEME,           /* scheme redirect (eg: switch from http to https) */
 };
 
-/* Perist types (force-persist, ignore-persist) */
+/* Persist types (force-persist, ignore-persist) */
 enum {
        PERSIST_TYPE_NONE = 0,          /* no persistence */
        PERSIST_TYPE_FORCE,             /* force-persist */
index 710fd87db4f54ac68f146e9f4381b33c87413481..51f55ea51e9402ea307117b3b21f1c193ce2cb10 100644 (file)
@@ -85,7 +85,7 @@ enum {
 #define MQTT_CONNECT_FL_PASSWORD        0x40
 #define MQTT_CONNECT_FL_USERNAME        0x80
 
-/* MQTT packet properties indentifiers
+/* MQTT packet properties identifiers
  * https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901029
  */
 #define MQTT_PROP_PAYLOAD_FORMAT_INDICATOR           0x01
index cfcd95004eacc06eae6d8bd6ce8fd83391c1b422..009bd13d70f58bf173c99605622d6a9a2a1c7837 100644 (file)
@@ -89,7 +89,7 @@ static inline uint64_t pbuf_le64toh(uint64_t v)
 }
 
 /*
- * Return a protobuf type enum from <s> string if succedeed, -1 if not.
+ * Return a protobuf type enum from <s> string if succeeded, -1 if not.
  */
 int protobuf_type(const char *s)
 {
index a0db8fad9a05d9405a65fa377c991322f75847a8..2f7bf7bbeae8279e89f03a468b6c0ae208808e93 100644 (file)
@@ -128,7 +128,7 @@ enum PR_SRV_STATE_FILE {
 #define PR_O2_LOGERRORS        0x00000040      /* log errors and retries at level LOG_ERR */
 #define PR_O2_SMARTACC         0x00000080      /* don't immediately ACK request after accept */
 #define PR_O2_SMARTCON         0x00000100      /* don't immediately send empty ACK after connect */
-#define PR_O2_RDPC_PRST        0x00000200      /* Actvate rdp cookie analyser */
+#define PR_O2_RDPC_PRST        0x00000200      /* Activate rdp cookie analyser */
 #define PR_O2_CLFLOG   0x00000400      /* log into clf format */
 #define PR_O2_LOGHCHKS 0x00000800      /* log health checks */
 #define PR_O2_INDEPSTR 0x00001000      /* independent streams, don't update rex on write */
index 6263231c56d8583217f2d7e68b1de0813a42d573..c6192fe225b1d3ff88c81c444358267919decd2a 100644 (file)
@@ -489,7 +489,7 @@ static inline size_t quic_path_prep_data(struct quic_path *path)
 }
 
 /* Return the number of bytes which may be sent from <qc> connection when
- * it has not already been validated. Note that this is the responsability
+ * it has not already been validated. Note that this is the responsibility
  * of the caller to check that the case with quic_peer_validated_addr().
  * This latter BUG_ON() if 3 * qc->rx.bytes < qc->tx.prep_bytes.
  */
index 13d3ff6a3048198908d0aa9047c56cd90c1ee944..2f2b92b18ea581aa92ee9080d6124ad274bd3404 100644 (file)
@@ -9,7 +9,7 @@
 #define QUIC_OPENSSL_COMPAT_TLS_SECRET_LEN 48
 #define QUIC_OPENSSL_COMPAT_TLS_IV_LEN     12
 
-/* Highly inspired from nginx QUIC TLS compatibilty code */
+/* Highly inspired from nginx QUIC TLS compatibility code */
 
 enum ssl_encryption_level_t {
        ssl_encryption_initial = 0,
index fc88f0421a58288ac73798b2b63fd88b5d51e4de..0d4c3ee67c5f1d4f76cad1414acc157f6cfcc564 100644 (file)
@@ -3,7 +3,7 @@
 
 #ifdef USE_QUIC_OPENSSL_COMPAT
 
-/* Highly inspired from nginx QUIC TLS compatibilty code */
+/* Highly inspired from nginx QUIC TLS compatibility code */
 #include <haproxy/listener-t.h>
 #include <haproxy/quic_openssl_compat-t.h>
 
index cc63709c3dfb4f09c78c4d8be1548013d5e264f9..e747f778f2730c6858c576df1b7b7944673a7d7d 100644 (file)
@@ -222,7 +222,7 @@ static inline struct quic_pktns **qel_to_quic_pktns(struct quic_conn *qc,
 }
 
 /* Map <level> TLS stack encryption level to our internal QUIC TLS encryption level
- * if succeded, or -1 if failed.
+ * if succeeded, or -1 if failed.
  */
 static inline enum quic_tls_enc_level ssl_to_quic_enc_level(enum ssl_encryption_level_t level)
 {
index 98b803dd16baffaac43671e0fcda22fcbba91770..c54b6162cbc4f3f49d4e0c7d609213edec75fc80 100644 (file)
@@ -86,7 +86,7 @@ static inline struct stconn *sc_opposite(const struct stconn *sc)
 
 
 /* sets the current and previous state of a stream connector to <state>. This is
- * mainly used to create one in the established state on incoming conncetions.
+ * mainly used to create one in the established state on incoming connections.
  */
 static inline void sc_set_state(struct stconn *sc, int state)
 {
index 80d803a95e9eee3654763b02edce1022c136dc55..24188780a264b56aea97cc5ff871d6b565acc2fb 100644 (file)
@@ -515,7 +515,7 @@ struct event_hdl_cb_data_server_checkres {
        } reason;
        struct {
                int cur;              /* dynamic (= check->health) */
-               int rise, fall;       /* config dependant */
+               int rise, fall;       /* config dependent */
        } health;                     /* check's health, see check-t.h */
 };
 
index 12eec3cab13915fbd2729919c59c598d2e01cb86..493024af81cdf0509f0c37be728bb146606cf8a3 100644 (file)
@@ -55,7 +55,7 @@ struct shared_context {
        void *cb_data;
        short int block_size;
        ALWAYS_ALIGN(64);  /* The following member needs to be aligned to 64 in the
-                             cache's case because the cache struct contains an explicitely
+                             cache's case because the cache struct contains an explicitly
                              aligned member (struct cache_tree). */
        unsigned char data[VAR_ARRAY];
 };
index 6d68841ae2965c69f273b7c77b9cccadbe571d2c..27324431a2813e5412054fff1962d6f8462845b3 100644 (file)
@@ -373,7 +373,7 @@ struct spoe_context {
                ullong         response_ts; /* date the response processing starts */
                long           t_request;   /* delay to encode and push the frame in queue (cumulative for frags) */
                long           t_queue;     /* delay before the frame gets out the sending queue (cumulative for frags) */
-               long           t_waiting;   /* delay before the response is reveived */
+               long           t_waiting;   /* delay before the response is received */
                long           t_response;  /* delay to process the response (from the stream pov) */
                long           t_process;   /* processing time of the last event/group */
                unsigned long  t_total;     /* cumulative processing time */
index 6ad5652ae5eae54fee9eb8411ff12cdf5bdb1954..8bddae4193fb9229fa64de7d87ffd8c54ffbc97b 100644 (file)
@@ -184,7 +184,7 @@ static forceinline void sc_ep_report_read_activity(struct stconn *sc)
 /* Report a send blocked. This function sets <fsb> to now_ms if it was not
  * already set or if something was sent (to renew <fsb>).
  *
- * if somehting was sent (<did_send> != 0), a read activity is also reported for
+ * if something was sent (<did_send> != 0), a read activity is also reported for
  * non-independent stream.
  */
 static forceinline void sc_ep_report_blocked_send(struct stconn *sc, int did_send)
index 63b5bf4af81648d6bf348a95dcfa2350ffe925d5..a8840072e5e1c81304cd37455cf7fc48f0f8bf12 100644 (file)
@@ -247,7 +247,7 @@ static inline void stream_inc_http_req_ctr(struct stream *s)
 }
 
 /* Increase the number of cumulated HTTP requests in the backend's tracked
- * counters. We don't look up the session since it cannot happen in the bakcend.
+ * counters. We don't look up the session since it cannot happen in the backend.
  */
 static inline void stream_inc_be_http_req_ctr(struct stream *s)
 {
index b32d13f3553c0c9a317d9e3fbba0e87472a92f65..8878995503469c941c55245f222dde7098ce171c 100644 (file)
@@ -188,7 +188,7 @@ struct tcpcheck_expect {
                } hdr;                       /* Matching a header pattern */
 
 
-               /* custom function to eval epxect rule */
+               /* custom function to eval expect rule */
                enum tcpcheck_eval_ret (*custom)(struct check *, struct tcpcheck_rule *, int);
        };
        struct tcpcheck_rule *head;     /* first expect of a chain. */
index f61bcae73688c2ded1e3f21ffe5edb70cb1ee1f4..605f38cf2a2c4db89f98b778e8cf067d06839030 100644 (file)
@@ -29,7 +29,7 @@ haproxy h1 -conf {
         http-after-response set-header proxy_custom_tlv_b %[var(txn.custom_tlv_b)]
 
         # Note that we do not check for an invalid TLV ID as that would result in an
-        # parser error anway.
+        # parser error anyway.
 
         http-request return status 200
 } -start
index b731320da71e5e91d34e94cb8f5358de3100b22f..7579f6d763f46942c9765d0c2120c37504da7167 100644 (file)
@@ -96,6 +96,6 @@ client c1h2 -connect ${h1_feh2_sock} {
                expect resp.status == 200
                rxdata -all
                expect resp.bodylen == 16300
-               #expext resp.chunkedlen == 16300
+               #expect resp.chunkedlen == 16300
        } -run
 } -repeat 2 -run
index 043d563e1dad68b4b9f9bb20d7b2d17d967b2e28..8ef2b7d7bba13b4c332f6405aef5b533f5dcb7b9 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -953,7 +953,7 @@ struct acl_cond *parse_acl_cond(const char **args, struct list *known_acl,
  * condition is returned. NULL is returned in case of error or if the first
  * word is neither "if" nor "unless". It automatically sets the file name and
  * the line number in the condition for better error reporting, and sets the
- * HTTP intiailization requirements in the proxy. If <err> is not NULL, it will
+ * HTTP initialization requirements in the proxy. If <err> is not NULL, it will
  * be filled with a pointer to an error message in case of error, that the
  * caller is responsible for freeing. The initial location must either be
  * freeable or NULL.
index e3abda38cd96ffcb4833e5c0f352dd8799d630ce..0eb9b3e690150e02822856d8e7654e7d18ab02d2 100644 (file)
@@ -1802,7 +1802,7 @@ skip_reuse:
            (srv->ssl_ctx.options & SRV_SSL_O_EARLY_DATA) &&
            /* Only attempt to use early data if either the client sent
             * early data, so that we know it can handle a 425, or if
-            * we are allwoed to retry requests on early data failure, and
+            * we are allowed to retry requests on early data failure, and
             * it's our first try
             */
            ((cli_conn->flags & CO_FL_EARLY_DATA) ||
index 272aed0cadb6bf56d561d073ee0b89b3e29b2afe..379c6d7c74057301a8a893940867b32950ae06cb 100644 (file)
@@ -240,7 +240,7 @@ static void release_entry_unlocked(struct cache_tree *cache, struct cache_entry
  * is already expired, and NULL is returned. Otherwise, the expired entry is
  * removed from the tree and NULL is returned.
  * Returns a valid (not expired) cache_tree pointer.
- * The returned entry is not retained, it should be explicitely retained only
+ * The returned entry is not retained, it should be explicitly retained only
  * when necessary.
  *
  * This function must be called under a cache lock, either read if
@@ -1033,7 +1033,7 @@ static void cache_reserve_finish(struct shared_context *shctx)
                         * the cache_use case which is under cache_rdlock and
                         * the reserve_hot case which would require the
                         * corresponding block to still be in the avail list,
-                        * which is impossible (we reverved it for a thread and
+                        * which is impossible (we reserved it for a thread and
                         * took it out of the avail list already). The only two
                         * references are then the default one (upon cache_entry
                         * creation) and the one in this cleanup list.
index 51c028189b2b21a7a70acbc766f9f5166939db90..2753c9324ba587dd67becc80636156f95468b30b 100644 (file)
@@ -1995,7 +1995,7 @@ REGISTER_POST_CHECK(start_checks);
 REGISTER_SERVER_DEINIT(deinit_srv_check);
 REGISTER_SERVER_DEINIT(deinit_srv_agent_check);
 
-/* perform minimal intializations */
+/* perform minimal initializations */
 static void init_checks()
 {
        int i;
index cf0bd4e20ef50d6af7b6f98ae69711b911110f29..547fff1b45a0cb27b57c3234cf4ee550ed1836cf 100644 (file)
@@ -285,7 +285,7 @@ int conn_install_mux_fe(struct connection *conn, void *ctx)
                        return -1;
        }
 
-       /* Ensure a valid protocol is selected if connection is targetted by a
+       /* Ensure a valid protocol is selected if connection is targeted by a
         * tcp-request session attach-srv rule.
         */
        if (conn->reverse.target && !(mux_ops->flags & MX_FL_REVERSABLE)) {
@@ -808,7 +808,7 @@ int conn_unsubscribe(struct connection *conn, void *xprt_ctx, int event_type, st
 /* Called from the upper layer, to subscribe <es> to events <event_type>.
  * The <es> struct is not allowed to differ from the one passed during a
  * previous call to subscribe(). If the connection's ctrl layer is ready,
- * the wait_event is immediately woken up and the subcription is cancelled.
+ * the wait_event is immediately woken up and the subscription is cancelled.
  * It always returns zero.
  */
 int conn_subscribe(struct connection *conn, void *xprt_ctx, int event_type, struct wait_event *es)
@@ -1806,7 +1806,7 @@ void list_mux_proto(FILE *out)
 
                done = 0;
 
-               /* note: the block below could be simplied using macros but for only
+               /* note: the block below could be simplified using macros but for only
                 * 4 flags it's not worth it.
                 */
                if (item->mux->flags & MX_FL_HTX)
index 7c449c123c45cb99000e9fbd90ee2431977efc59..049b9118654462e201ffd2f807807bc191d5e85a 100644 (file)
@@ -1029,7 +1029,7 @@ static int debug_parse_cli_stream(char **args, char *payload, struct appctx *app
                               "     <obj>   = { strm.f | strm.x | scf.s | scb.s | txn.f | req.f | res.f }\n"
                               "     <op>    = {'' (show) | '=' (assign) | '^' (xor) | '+' (or) | '-' (andnot)}\n"
                               "     <value> = 'now' | 64-bit dec/hex integer (0x prefix supported)\n"
-                              "     'wake' wakes the stream asssigned to 'strm' (default: current)\n"
+                              "     'wake' wakes the stream assigned to 'strm' (default: current)\n"
                               );
        }
 
index 1ae09f481a59a330834f9a9e046ee3ecb7be883b..712e334f12dd475ef9d537418b04affdad2b2a3d 100644 (file)
@@ -22,7 +22,7 @@
 
 struct pool_head *pool_head_buffer __read_mostly;
 
-/* perform minimal intializations, report 0 in case of error, 1 if OK. */
+/* perform minimal initializations, report 0 in case of error, 1 if OK. */
 int init_buffer()
 {
        void *buffer;
index 27db231fd1c519ad6b987cdaf776da21b57eb941..66c2883df5cc65afcdb721d631461efbd484eb53 100644 (file)
@@ -430,7 +430,7 @@ static enum act_return bwlim_set_limit(struct act_rule *rule, struct proxy *px,
        return ACT_RET_CONT;
 }
 
-/* Check function for "set-bandwidth-limit" aciton. It returns 1 on
+/* Check function for "set-bandwidth-limit" action. It returns 1 on
  * success. Otherwise, it returns 0 and <err> is filled.
  */
 int check_bwlim_action(struct act_rule *rule, struct proxy *px, char **err)
index d1b28b939b67d5447c297dc0b3fc03f29baefddd..2b4a98318a2965b0d641061042a44390fb2059b8 100644 (file)
@@ -12911,7 +12911,7 @@ __LJMP static int hlua_ckch_set(lua_State *L)
                        goto end;
                }
 
-               /* appply the change on the duplicate */
+               /* apply the change on the duplicate */
                if (cert_ext->load(filename, payload, data, &err) != 0) {
                        memprintf(&err, "%sCan't load the payload for '%s'", err ? err : "", cert_ext->ext);
                        errcode |= ERR_ALERT | ERR_FATAL;
index 9937082138ec867402f61dee05d60fb8868f085c..d8dcdfd1e6ebf3350b3f793ed9988f29be8a2807 100644 (file)
@@ -589,7 +589,7 @@ static int hlua_queue_push(lua_State *L)
        return 1;
 }
 
-/* internal queue pop helper, returns 1 if it successfuly popped an item
+/* internal queue pop helper, returns 1 if it successfully popped an item
  * from the queue and pushed it on lua stack.
  *
  * Else it returns 0 (nothing is pushed on the stack)
@@ -699,7 +699,7 @@ static int hlua_queue_pop_wait(lua_State *L)
         * call never returns, and instead Lua will call the continuation
         * function after a successful resume, so the calling function will
         * no longer be us, but Lua instead. And when the continuation function
-        * eventually returns (because it succesfully popped an item), Lua will
+        * eventually returns (because it successfully popped an item), Lua will
         * directly give the hand back to the Lua function that called us.
         *
         * More info here: https://www.lua.org/manual/5.4/manual.html#4.7
index 7b52979b493f3fb222f0fa3ab5537cb4298a9cda..37034ad2f14907d8877e246b3a379f0f4fa9da3b 100644 (file)
@@ -986,7 +986,7 @@ int http_request_forward_body(struct stream *s, struct channel *req, int an_bit)
        if ((s->scb->flags & SC_FL_SHUT_DONE) && co_data(req)) {
                /* request errors are most likely due to the server aborting the
                 * transfer.Bit handle server aborts only if there is no
-                * response. Otherwise, let a change to foward the response
+                * response. Otherwise, let a change to forward the response
                 * first.
                 */
                if (htx_is_empty(htxbuf(&s->res.buf)))
@@ -1029,7 +1029,7 @@ int http_request_forward_body(struct stream *s, struct channel *req, int an_bit)
        /* waiting for the last bits to leave the buffer */
        if (s->scb->flags & SC_FL_SHUT_DONE) {
                /* Handle server aborts only if there is no response. Otherwise,
-                * let a change to foward the response first.
+                * let a change to forward the response first.
                 */
                if (htx_is_empty(htxbuf(&s->res.buf)))
                        goto return_srv_abort;
index f500ad727089d4c4a6f256d06275302e46f9c3bf..f5ff9f304f5b9d4f31c1e5dc26a88a87f4a2deda 100644 (file)
@@ -463,7 +463,7 @@ static int smp_fetch_uniqueid(const struct arg *args, struct sample *smp, const
 }
 
 /* Returns a string block containing all headers including the
- * empty line which separes headers from the body. This is useful
+ * empty line which separates headers from the body. This is useful
  * for some headers analysis.
  */
 static int smp_fetch_hdrs(const struct arg *args, struct sample *smp, const char *kw, void *private)
index a494a8b9ff63105e5e6dfaa0a75ae93d7d4b67ed..feb7eec8771bb0e471a4f84cb2c65c11d42f4bf1 100644 (file)
--- a/src/htx.c
+++ b/src/htx.c
@@ -229,7 +229,7 @@ static struct htx_blk *htx_reserve_nxblk(struct htx *htx, uint32_t blksz)
  *
  *  1: the expansion must be performed in place, there is enough space after
  *      the block's payload to handle it. This is especially true if it is a
- *      compression and not an expension.
+ *      compression and not an expansion.
  *
  *  2: the block's payload must be moved at the new block address before doing
  *     the expansion.
index 023219c98bf5caff6ebfbb54ac58f9468d2bf9c4..4e8fb1536ccb4082f89b4e85f0073bb36a34369a 100644 (file)
@@ -464,7 +464,7 @@ struct server *chash_get_next_server(struct proxy *p, struct server *srvtoavoid)
 }
 
 /* This function is responsible for building the active and backup trees for
- * constistent hashing. The servers receive an array of initialized nodes
+ * consistent hashing. The servers receive an array of initialized nodes
  * with their assigned keys. It also sets p->lbprm.wdiv to the eweight to
  * uweight ratio.
  * Return 0 in case of success, -1 in case of allocation failure.
index 739add6f1a6e9ad54afc06c45ecc0c470dd8a0e4..1a132590bd89eea6dd80624a91cf8923c700f085 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -85,7 +85,7 @@ static const struct log_fmt_st log_formats[LOG_FORMATS] = {
 
 /*
  * This map is used with all the FD_* macros to check whether a particular bit
- * is set or not. Each bit represents an ACSII code. ha_bit_set() sets those
+ * is set or not. Each bit represents an ASCII code. ha_bit_set() sets those
  * bytes which should be escaped. When ha_bit_test() returns non-zero, it means
  * that the byte should be escaped. Be careful to always pass bytes from 0 to
  * 255 exclusively to the macros.
@@ -780,7 +780,7 @@ static void _log_backend_srv_queue(struct server *srv)
 {
        struct proxy *p = srv->proxy;
 
-       /* queue the server in the proxy lb array to make it easily searcheable by
+       /* queue the server in the proxy lb array to make it easily searchable by
         * log-balance algorithms. Here we use the srv array as a general server
         * pool of in-use servers, lookup is done using a relative positional id
         * (array is contiguous)
@@ -947,7 +947,7 @@ static int postcheck_log_backend(struct proxy *be)
        if (err_code & ERR_CODE)
                return err_code;
 
-       /* First time encoutering this log backend, perform some init
+       /* First time encountering this log backend, perform some init
         */
        be->lbprm.set_server_status_up = log_backend_srv_up;
        be->lbprm.set_server_status_down = log_backend_srv_down;
@@ -1092,7 +1092,7 @@ static int postcheck_log_backend(struct proxy *be)
  * Returns err_code which defaults to ERR_NONE and can be set to a combination
  * of ERR_WARN, ERR_ALERT, ERR_FATAL and ERR_ABORT in case of errors.
  * <msg> could be set at any time (it will usually be set on error, but
- * could also be set when no error occured to report a diag warning), thus is
+ * could also be set when no error occurred to report a diag warning), thus is
  * up to the caller to check it and to free it.
  */
 int resolve_logger(struct logger *logger, char **msg)
index 9f16e56bace3ef47da473838d634383fc8f1d534..5f94a2ef0e0d00fdb02a41b3145a9a001b5d6c79 100644 (file)
@@ -4603,7 +4603,7 @@ static int h1_fastfwd(struct stconn *sc, unsigned int count, unsigned int flags)
                h1_release_buf(h1c, &h1c->ibuf);
 
        if (sdo->iobuf.flags & IOBUF_FL_NO_FF) {
-               /* Fast forwading is not supported by the consumer */
+               /* Fast forwarding is not supported by the consumer */
                h1c->flags = (h1c->flags & ~H1C_F_WANT_FASTFWD) | H1C_F_CANT_FASTFWD;
                TRACE_DEVEL("Fast-forwarding not supported by opposite endpoint, disable it", H1_EV_STRM_RECV, h1c->conn, h1s);
                goto end;
@@ -4960,7 +4960,7 @@ static int add_hdr_case_adjust(const char *from, const char *to, char **err)
 
        /* Be sure only the case differs between <from> and <to> */
        if (strcasecmp(from, to) != 0) {
-               memprintf(err, "<from> and <to> must not differ execpt the case");
+               memprintf(err, "<from> and <to> must not differ except the case");
                return -1;
        }
 
index 886a2698249eaf245f7bf35a7073f90329fdd464..e17e47cc648af7136a59a8577bd5e5cd9aa891c9 100644 (file)
@@ -3261,7 +3261,7 @@ static int h2_frame_check_vs_state(struct h2c *h2c, struct h2s *h2s)
  * For active reversal, only minor steps are required. The connection should
  * then be accepted by its listener before being able to use it for transfers.
  *
- * For passive reversal, connection is inserted in its targetted server idle
+ * For passive reversal, connection is inserted in its targeted server idle
  * pool. It can thus be reused immediately for future transfers on this server.
  *
  * Returns 1 on success else 0.
@@ -5006,7 +5006,7 @@ next_frame:
                        goto fail;
                }
 
-               /* detect when we must stop aggragating frames */
+               /* detect when we must stop aggregating frames */
                h2c->dff |= hdr.ff & H2_F_HEADERS_END_HEADERS;
 
                /* Take as much as we can of the CONTINUATION frame's payload */
@@ -5016,7 +5016,7 @@ next_frame:
 
                /* Move the frame's payload over the padding, hole and frame
                 * header. At least one of hole or dpl is null (see diagrams
-                * above). The hole moves after the new aggragated frame.
+                * above). The hole moves after the new aggregated frame.
                 */
                b_move(&h2c->dbuf, b_peek_ofs(&h2c->dbuf, h2c->dfl + hole + 9), clen, -(h2c->dpl + hole + 9));
                h2c->dfl += hdr.len - h2c->dpl;
index 802aa4c8a2a69873b713ac698d18f8f5f4e251a4..f79e3c8e45390846aa0f6fd2616868ad919282f2 100644 (file)
@@ -664,7 +664,7 @@ static int mux_pt_fastfwd(struct stconn *sc, unsigned int count, unsigned int fl
 
        try = se_nego_ff(sdo, &BUF_NULL, count, conn->xprt->rcv_pipe && !!(flags & CO_RFL_MAY_SPLICE) && !(sdo->iobuf.flags & IOBUF_FL_NO_SPLICING));
        if (sdo->iobuf.flags & IOBUF_FL_NO_FF) {
-               /* Fast forwading is not supported by the consumer */
+               /* Fast forwarding is not supported by the consumer */
                se_fl_clr(ctx->sd, SE_FL_MAY_FASTFWD);
                TRACE_DEVEL("Fast-forwarding not supported by opposite endpoint, disable it", PT_EV_RX_DATA, conn, sc);
                goto end;
index 8d0127f3737aa9cc835404c692c49cfb0fcc399c..397cfb5c433a85c67510964224a5c16a884b8c9c 100644 (file)
@@ -217,7 +217,7 @@ static inline int qcc_is_dead(const struct qcc *qcc)
                return 0;
 
        /* Connection considered dead if either :
-        * - remote error detected at tranport level
+        * - remote error detected at transport level
         * - error detected locally
         * - MUX timeout expired
         */
index 6f99e64cbe0b2c854eb1f1b391d38e7d7856a64f..23affa127b2aa1c31aa46fbede2b4bd4a37fa4da 100644 (file)
@@ -2633,7 +2633,7 @@ static inline int peer_treat_awaited_msg(struct appctx *appctx, struct peer *pee
  *   - peer->stop_local_table is the last evaluated table. It is unset when the
  *                            teaching process starts. But we use it as a
  *                            restart point when the loop is interrupted. It is
- *                            especially useful whe the number of tables exceeds
+ *                            especially useful when the number of tables exceeds
  *                            peers_max_updates_at_once value.
  *
  * When a teaching lopp is started, the peer's last_local_table is saved in a
index 91774de576f578e4a458dd5241d88f4470e0be0e..7df6877c08da5983399d5b0ba43f12d97bf745d1 100644 (file)
@@ -620,7 +620,7 @@ void pool_evict_from_local_caches()
 /* Frees an object to the local cache, possibly pushing oldest objects to the
  * shared cache, which itself may decide to release some of them to the OS.
  * While it is unspecified what the object becomes past this point, it is
- * guaranteed to be released from the users' perpective. A caller address may
+ * guaranteed to be released from the users' perspective. A caller address may
  * be passed and stored into the area when DEBUG_POOL_TRACING is set. Must not
  * be used with pools disabled.
  */
@@ -864,7 +864,7 @@ void *__pool_alloc(struct pool_head *pool, unsigned int flags)
                        /* replace the caller with the allocated bin: this way
                         * we'll the pool_free() call will be able to update our
                         * entry. We only do it for non-colliding entries though,
-                        * since thse ones store the true caller location.
+                        * since these ones store the true caller location.
                         */
                        if (bin >= &memprof_stats[0] && bin < &memprof_stats[MEMPROF_HASH_BUCKETS])
                                POOL_DEBUG_TRACE_CALLER(pool, (struct pool_cache_item *)p, bin);
index e46d8c397554c45a5fe4af555ff6889b2a14303d..3d100d5947df6a14258379a8f6f7d45948ea4713 100644 (file)
@@ -180,7 +180,7 @@ struct task *rev_process(struct task *task, void *ctx, unsigned int state)
                        BUG_ON(l->rx.reverse_connect.pend_conn);
                }
                else {
-                       /* Spurrious receiver task woken up despite pend_conn not ready/on error. */
+                       /* Spurious receiver task woken up despite pend_conn not ready/on error. */
                        BUG_ON(!(conn->flags & CO_FL_ACT_REVERSING));
 
                        /* A connection is ready to be accepted. */
@@ -233,7 +233,7 @@ int rev_bind_listener(struct listener *listener, char *errmsg, int errlen)
 
        /* Set maxconn which is defined via the special kw nbconn for reverse
         * connect. Use a default value of 1 if not set. This guarantees that
-        * listener will be automatically reenable each time it fell back below
+        * listener will be automatically re-enable each time it fell back below
         * it due to a connection error.
         */
        listener->bind_conf->maxconn = listener->bind_conf->reverse_nbconn;
@@ -329,7 +329,7 @@ struct connection *rev_accept_conn(struct listener *l, int *status)
 
        if (!conn) {
                /* Reverse connect listener must have an explicit maxconn set
-                * to ensure it is reenabled on connection error.
+                * to ensure it is re-enabled on connection error.
                 */
                BUG_ON(!l->bind_conf->maxconn);
 
index 4994cb89afd94261050d5885536809e2fef9f41d..138b75c0819c750c8b5bdaa0b809923e3cc6f6f4 100644 (file)
@@ -817,7 +817,7 @@ static struct task *qc_cc_idle_timer_task(struct task *t, void *ctx, unsigned in
  * if succeeded, NULL if not. This function is also responsible of
  * copying enough and the least possible information from <qc> original
  * connection to the newly allocated connection so that to keep it
- * functionnal until its idle timer expires.
+ * functional until its idle timer expires.
  */
 static struct quic_cc_conn *qc_new_cc_conn(struct quic_conn *qc)
 {
@@ -974,7 +974,7 @@ struct task *quic_conn_io_cb(struct task *t, void *context, unsigned int state)
                quic_pktns_release(qc, &qc->ipktns);
                qc_enc_level_free(qc, &qc->hel);
                quic_pktns_release(qc, &qc->hpktns);
-               /* Also release the negotiated Inital TLS context. */
+               /* Also release the negotiated Initial TLS context. */
                quic_nictx_free(qc);
        }
 
@@ -1161,7 +1161,7 @@ static int quic_increment_curr_handshake(struct listener *l)
  * <dcid> is the destination connection ID, <scid> is the source connection ID.
  * This latter <scid> CID as the same value on the wire as the one for <conn_id>
  * which is the first CID of this connection but a different internal representation used to build
- * NEW_CONNECTION_ID frames. This is the responsability of the caller to insert
+ * NEW_CONNECTION_ID frames. This is the responsibility of the caller to insert
  * <conn_id> in the CIDs tree for this connection (qc->cids).
  * <token> is the token found to be used for this connection with <token_len> as
  * length. Endpoints addresses are specified via <local_addr> and <peer_addr>.
@@ -1581,7 +1581,7 @@ void quic_conn_release(struct quic_conn *qc)
 
        /* Decrement global counters when quic_conn is deallocated.
         * quic_cc_conn instances are not accounted as they run for a short
-        * time with limited ressources.
+        * time with limited resources.
         */
        _HA_ATOMIC_DEC(&actconn);
        _HA_ATOMIC_DEC(&global.sslconns);
index de5badf0c4921731658fbae892129a8d26760c6c..24031459e25ffa78d537fad415db3c016f31acae 100644 (file)
@@ -7,7 +7,7 @@
 #endif
 
 #include <haproxy/openssl-compat.h>
-/* Highly inspired from nginx QUIC TLS compatibilty code */
+/* Highly inspired from nginx QUIC TLS compatibility code */
 #include <openssl/kdf.h>
 
 #include <haproxy/quic_conn.h>
index beb291c4f9e4a02839ae5d23735bce12cd4bef3e..afffdf302bdea9508c3da9e84ae17313714ba525 100644 (file)
@@ -43,7 +43,7 @@
 #include <haproxy/tools.h>
 #include <haproxy/trace.h>
 
-/* Log only first EACCES bind() error runtime occurence. */
+/* Log only first EACCES bind() error runtime occurrence. */
 static volatile char quic_bind_eacces_warn = 0;
 
 /* Retrieve a connection's source address. Returns -1 on failure. */
index bc5f0eaccdbd76d21e3ffda9a612fc23c93e0d8e..e7279be7cd1460bea27c4f0abc322ce6da40eded 100644 (file)
@@ -404,7 +404,7 @@ static int ha_quic_send_alert(SSL *ssl, enum ssl_encryption_level_t level, uint8
 
 /* QUIC TLS methods */
 #if defined(OPENSSL_IS_AWSLC)
-/* write/read set secret splitted */
+/* write/read set secret split */
 static SSL_QUIC_METHOD ha_quic_method = {
        .set_read_secret        = ha_quic_set_read_secret,
        .set_write_secret       = ha_quic_set_write_secret,
index 6cc3b57a1eef5b6fb69306728bbf73c204f82f46..9ab9626d7dae177e4f4edad76e8bd1b02e4bd618 100644 (file)
@@ -66,7 +66,7 @@ static const struct trace_event quic_trace_events[] = {
        { .mask = QUIC_EV_STATELESS_RST, .name = "stateless_reset",  .desc = "stateless reset sent"},
        { .mask = QUIC_EV_TRANSP_PARAMS, .name = "transport_params", .desc = "transport parameters"},
        { .mask = QUIC_EV_CONN_IDLE_TIMER, .name = "idle_timer",     .desc = "idle timer task"},
-       { .mask = QUIC_EV_CONN_SUB,      .name = "xprt_sub",         .desc = "RX/TX subcription or unsubscription to QUIC xprt"},
+       { .mask = QUIC_EV_CONN_SUB,      .name = "xprt_sub",         .desc = "RX/TX subscription or unsubscription to QUIC xprt"},
        { .mask = QUIC_EV_CONN_RCV,      .name = "conn_recv",        .desc = "RX on connection" },
        { .mask = QUIC_EV_CONN_SET_AFFINITY, .name = "conn_set_affinity", .desc = "set connection thread affinity" },
        { /* end */ }
index d4529fb1adb2003b6f27f35bd4d47417975caed0..63ff86f8497a6c4ca41da625fd3c96ed1531516f 100644 (file)
@@ -340,7 +340,7 @@ void qc_txb_release(struct quic_conn *qc)
        /* For the moment sending function is responsible to purge the buffer
         * entirely. It may change in the future but this requires to be able
         * to reuse old data.
-        * For the momemt we do not care to leave data in the buffer for
+        * For the moment we do not care to leave data in the buffer for
         * a connection which is supposed to be killed asap.
         */
        BUG_ON_HOT(buf && b_data(buf));
index 06b2cbafc0d79be1a310a9977df20696edae6879..849221ee4502ab949c17e9b09de4afc72d6bc25e 100644 (file)
@@ -469,7 +469,7 @@ size_t ring_max_payload(const struct ring *ring)
        /* initial max = bufsize - 1 (initial RC) - 1 (payload RC) */
        max = b_size(&ring->buf) - 1 - 1;
 
-       /* substract payload VI (varint-encoded size) */
+       /* subtract payload VI (varint-encoded size) */
        max -= varint_bytes(max);
        return max;
 }
index a882d5168a64b53ef5ccb9883d60d9b82d49aa40..c8954ac47692b81546d9453433c99ef44b530956 100644 (file)
@@ -599,7 +599,7 @@ struct sample_fetch *sample_fetch_getnext(struct sample_fetch *current, int *idx
                kwl = LIST_NEXT(&sample_fetches.list, struct sample_fetch_kw_list *, list);
                (*idx) = 0;
        } else {
-               /* Get kwl corresponding to the curret entry. */
+               /* Get kwl corresponding to the current entry. */
                base = current + 1 - (*idx);
                kwl = container_of(base, struct sample_fetch_kw_list, kw);
        }
@@ -642,7 +642,7 @@ struct sample_conv *sample_conv_getnext(struct sample_conv *current, int *idx)
                kwl = LIST_NEXT(&sample_convs.list, struct sample_conv_kw_list *, list);
                (*idx) = 0;
        } else {
-               /* Get kwl corresponding to the curret entry. */
+               /* Get kwl corresponding to the current entry. */
                base = current + 1 - (*idx);
                kwl = container_of(base, struct sample_conv_kw_list, kw);
        }
@@ -895,7 +895,7 @@ int c_none(struct sample *smp)
 }
 
 /* special converter function used by pseudo types in the compatibility matrix
- * to inform that the conversion is theorically allowed at parsing time.
+ * to inform that the conversion is theoretically allowed at parsing time.
  *
  * However, being a pseudo type, it may not be emitted by fetches or converters
  * so this function should never be called. If this is the case, then it means
@@ -2258,7 +2258,7 @@ found:
   * strftime(3) does not implement nanoseconds, but we still want them in our
   * date format.
   *
-  * This function implements %N like in date(1) which gives you the nanoseconds part of the timetamp
+  * This function implements %N like in date(1) which gives you the nanoseconds part of the timestamp
   * An optional field width can be specified, a maximum width of 9 is supported (ex: %3N %6N %9N)
   *
   * <format> is the format string
@@ -2310,7 +2310,7 @@ static struct buffer *conv_time_common(const char *format, time_t curr_date, uin
 
                if (chunk_istcat(tmp_format, ist2(p, cpy)) == 0) /* copy before the %N */
                        goto error;
-               if (chunk_istcat(tmp_format, ist2(ns_str, width)) == 0) /* copy the %N result with the right precison  */
+               if (chunk_istcat(tmp_format, ist2(ns_str, width)) == 0) /* copy the %N result with the right precision  */
                        goto error;
 
                p += skip + cpy; /* skip the %N */
@@ -4728,7 +4728,7 @@ static int smp_check_const_meth(struct arg *args, char **err)
                args[0].type = ARGT_SINT;
                args[0].data.sint = meth;
        } else {
-               /* Check method avalaibility. A method is a token defined as :
+               /* Check method availability. A method is a token defined as :
                 * tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." /
                 *         "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA
                 * token = 1*tchar
index 3d40ead695a8fe4061468a109e9a6b66b9eef6fb..ce9ccbfd7eedafa9f7b520be551ffb5a612978cc 100644 (file)
@@ -166,7 +166,7 @@ int session_accept_fd(struct connection *cli_conn)
        cli_conn->proxy_netns = l->rx.settings->netns;
 
        /* Active reversed connection has already been initialized before being
-        * accepted. It must not be resetted.
+        * accepted. It must not be reset.
         * TODO use a dedicated accept_fd callback for reverse protocol
         */
        if (!cli_conn->xprt) {
index 3d7a9a89897e05fbdeabe0f737449f380194b173..1bb60eb82b6ccc8b9e6924073eae3f69d108e9d8 100644 (file)
@@ -101,7 +101,7 @@ void __signal_process_queue()
        ha_sigmask(SIG_SETMASK, &old_sig, NULL);
 }
 
-/* perform minimal intializations */
+/* perform minimal initializations */
 static void signal_init()
 {
        int sig;
index 7b5c9b68140adfcf499422164b5eacca6eaba587..66c2b8c77f2fa468f499a92dc7052950f073f2b1 100644 (file)
@@ -663,7 +663,7 @@ static struct appctx *sink_forward_session_create(struct sink *sink, struct sink
 }
 
 /*
- * Task to handle connctions to forward servers
+ * Task to handle connections to forward servers
  */
 static struct task *process_sink_forward(struct task * task, void *context, unsigned int state)
 {
@@ -696,7 +696,7 @@ static struct task *process_sink_forward(struct task * task, void *context, unsi
        return task;
 }
 /*
- * Init task to manage connctions to forward servers
+ * Init task to manage connections to forward servers
  *
  * returns 0 in case of error.
  */
@@ -1323,7 +1323,7 @@ int cfg_post_parse_ring()
  * Returns err_code which defaults to ERR_NONE and can be set to a combination
  * of ERR_WARN, ERR_ALERT, ERR_FATAL and ERR_ABORT in case of errors.
  * <msg> could be set at any time (it will usually be set on error, but
- * could also be set when no error occured to report a diag warning), thus is
+ * could also be set when no error occurred to report a diag warning), thus is
  * up to the caller to check it and to free it.
  */
 int sink_resolve_logger_buffer(struct logger *logger, char **msg)
index 07a04aa181e25c6da2f81b46d62112a31edca3ca..0296425f151eee2596a85062455527e1e57c5242 100644 (file)
@@ -2422,7 +2422,7 @@ static int cli_parse_set_cert(char **args, char *payload, struct appctx *appctx,
 
        data = new_ckchs->data;
 
-       /* appply the change on the duplicate */
+       /* apply the change on the duplicate */
        if (cert_ext->load(buf->area, payload, data, &err) != 0) {
                memprintf(&err, "%sCan't load the payload\n", err ? err : "");
                errcode |= ERR_ALERT | ERR_FATAL;
index 307825b7c29bbc95b09b1222643d4a4f581184e5..8eed4f6c389fd7fcea17d346d03f7e3dbb460e26 100644 (file)
@@ -7327,7 +7327,7 @@ static int cli_io_handler_tlskeys_files(struct appctx *appctx)
                /* Now, we start the browsing of the references lists.
                 * Note that the following call to LIST_ELEM return bad pointer. The only
                 * available field of this pointer is <list>. It is used with the function
-                * tlskeys_list_get_next() for retruning the first available entry
+                * tlskeys_list_get_next() for returning the first available entry
                 */
                if (ctx->next_ref == NULL)
                        ctx->next_ref = tlskeys_list_get_next(&tlskeys_reference, &tlskeys_reference);
index 896d7e3ec13810ae9ccaa568fbf8aeb9d5942397..b2342c98c9536da2effca77f770e2761f474fed5 100644 (file)
@@ -521,7 +521,7 @@ struct appctx *sc_applet_create(struct stconn *sc, struct applet *app)
  */
 static inline int sc_cond_forward_shut(struct stconn *sc)
 {
-       /* Foward the shutdown if an write error occurred on the input channel */
+       /* Forward the shutdown if an write error occurred on the input channel */
        if (sc_ic(sc)->flags & CF_WRITE_TIMEOUT)
                return 1;
 
index 3e351d0e33b55ee7d0b15bb60cdf2eb33cd92d02..1ab5212018764cf18c7b4ac3b7160baf0dc76304 100644 (file)
@@ -928,7 +928,7 @@ void mworker_cleantasks()
        }
 }
 
-/* perform minimal intializations */
+/* perform minimal initializations */
 static void init_task()
 {
        int i, q;
index f4c1493035953aa031fd6df5dedb9202fc08ecdd..a6898cb4a23afb00f78933f66795a4e64fe5dd9d 100644 (file)
@@ -453,7 +453,7 @@ static int tcp_check_attach_srv(struct act_rule *rule, struct proxy *px, char **
 
        if ((rule->arg.attach_srv.name && (!srv->use_ssl || !srv->sni_expr)) ||
            (!rule->arg.attach_srv.name && srv->use_ssl && srv->sni_expr)) {
-               memprintf(err, "attach-srv rule: connection will never be used; either specify name argument in conjonction with defined SSL SNI on targetted server or none of these");
+               memprintf(err, "attach-srv rule: connection will never be used; either specify name argument in conjunction with defined SSL SNI on targeted server or none of these");
                return 0;
        }
 
index d67356f8ee827952c22b17d2f9ccbe7e235d904c..3633ab0f005a10d5d5032411b89a566e736168f5 100644 (file)
@@ -3350,7 +3350,7 @@ void v4tov6(struct in6_addr *sin6_addr, struct in_addr *sin_addr)
 
 /* Try to convert IPv6 address to IPv4 address thanks to the
  * following mapping methods:
- *  - RFC4291 IPv4-Mapped IPv6 Address (prefered method)
+ *  - RFC4291 IPv4-Mapped IPv6 Address (preferred method)
  *    -> ::ffff:ip:v4
  *  - RFC4291 IPv4-Compatible IPv6 Address (deprecated, RFC3513 legacy for
  *    "IPv6 Addresses with Embedded IPv4 Addresses)
index 0b6bc1212781c5082da1cd699be2c28d3700937f..0e761909fb1ba8e5e97a79bd66506013b00c51a0 100644 (file)
@@ -583,7 +583,7 @@ static int smp_conv_clear(const struct arg *args, struct sample *smp, void *priv
 }
 
 /* This functions check an argument entry and fill it with a variable
- * type. The argumen must be a string. If the variable lookup fails,
+ * type. The argument must be a string. If the variable lookup fails,
  * the function returns 0 and fill <err>, otherwise it returns 1.
  */
 int vars_check_arg(struct arg *arg, char **err)