]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fix typos in the proxy subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 19:46:55 +0000 (11:46 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:23:15 +0000 (22:23 +0100)
Fix typos in the code comments of the proxy subsystem.

include/types/proxy.h
src/proxy.c

index b7c9038d6e3d37877e937496602b5e87c1b1a6d6..8e181fadaa02a4be655553914a2e6708c42c15a8 100644 (file)
@@ -121,7 +121,7 @@ enum PR_SRV_STATE_FILE {
 #define PR_O_HTTP_MODE  0x07000000      /* MASK to retrieve the HTTP mode */
 
 #define PR_O_TCPCHK_SSL 0x08000000     /* at least one TCPCHECK connect rule requires SSL */
-#define PR_O_CONTSTATS 0x10000000      /* continous counters */
+#define PR_O_CONTSTATS 0x10000000      /* continuous counters */
 #define PR_O_HTTP_PROXY 0x20000000     /* Enable stream to use HTTP proxy operations */
 #define PR_O_DISABLE404 0x40000000      /* Disable a server on a 404 response to a health-check */
 #define PR_O_ORGTO      0x80000000      /* insert x-original-to with destination address */
index d0b06d8eb1329a49a789ce7fa786e0ec51f6ca90..c21ff9d129dc6e3ab3b521b03de60484af7696bb 100644 (file)
@@ -362,7 +362,7 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx,
                return -1;
        }
 
-       /* Capture keywork is only avalaible in frontend. */
+       /* Capture keywork is only available in frontend. */
        if (!(curpx->cap & PR_CAP_FE)) {
                memprintf(err, "'%s' only avalaible in frontend or listen section", args[0]);
                return -1;
@@ -374,9 +374,9 @@ static int proxy_parse_declare(char **args, int section, struct proxy *curpx,
                return -1;
        }
 
-       /* Actually, declare is only avalaible for declaring capture
+       /* Actually, declare is only available for declaring capture
         * slot, but in the future it can declare maps or variables.
-        * So, this section permits to check and switch acording with
+        * So, this section permits to check and switch according with
         * the second keyword.
         */
        if (strcmp(args[1], "capture") == 0) {
@@ -570,7 +570,7 @@ struct proxy *proxy_find_best_match(int cap, const char *name, int id, int *diff
                        return byname;
        }
 
-       /* remaining possiblities :
+       /* remaining possibilities :
         *   - name not set
         *   - name set but not found
         *   - name found, but ID doesn't match.
@@ -594,7 +594,7 @@ struct proxy *proxy_find_best_match(int cap, const char *name, int id, int *diff
                                }
                        }
 
-                       /* remaining possiblities :
+                       /* remaining possibilities :
                         *   - name not set
                         *   - name set but not found
                         */
@@ -611,7 +611,7 @@ struct proxy *proxy_find_best_match(int cap, const char *name, int id, int *diff
                }
        }
 
-       /* All remaining possiblities will lead to NULL. If we can report more
+       /* All remaining possibilities will lead to NULL. If we can report more
         * detailed information to the caller about changed types and/or name,
         * we'll do it. For example, we could detect that "listen foo" was
         * split into "frontend foo_ft" and "backend foo_bk" if IDs are forced.
@@ -944,7 +944,7 @@ struct task *hard_stop(struct task *t, void *context, unsigned short state)
        if (killed) {
                ha_warning("Some tasks resisted to hard-stop, exiting now.\n");
                send_log(NULL, LOG_WARNING, "Some tasks resisted to hard-stop, exiting now.\n");
-               /* Do some cleanup and explicitely quit */
+               /* Do some cleanup and explicitly quit */
                deinit();
                exit(0);
        }
@@ -1340,7 +1340,7 @@ int stream_set_backend(struct stream *s, struct proxy *be)
  * are passed :
  *  - <proxy> is the proxy where the error was detected and where the snapshot
  *    needs to be stored
- *  - <is_back> indicates that the error happend when receiving the response
+ *  - <is_back> indicates that the error happened when receiving the response
  *  - <other_end> is a pointer to the proxy on the other side when known
  *  - <target> is the target of the connection, usually a server or a proxy
  *  - <sess> is the session which experienced the error