]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: fix a few typos
authorGodbach <nylzhaowei@gmail.com>
Wed, 10 Dec 2014 02:21:30 +0000 (10:21 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Dec 2014 04:34:55 +0000 (05:34 +0100)
include/types/proto_http.h: hwen -> when
include/types/server.h: SRV_ST_DOWN -> SRV_ST_STOPPED
src/backend.c: prefer-current-server -> prefer-last-server

Signed-off-by: Godbach <nylzhaowei@gmail.com>
include/types/proto_http.h
include/types/server.h
src/backend.c

index 95bf59d6d4dad8b8ad0bcb991ee16e6837898f16..2654b78b01e041f9d70d9c3b09552d667e4e2003 100644 (file)
@@ -71,7 +71,7 @@
 
 /* indicate how we *want* the connection to behave, regardless of what is in
  * the headers. We have 4 possible values right now :
- * - WANT_KAL : try to maintain keep-alive (default hwen nothing configured)
+ * - WANT_KAL : try to maintain keep-alive (default when nothing configured)
  * - WANT_TUN : will be a tunnel (CONNECT).
  * - WANT_SCL : enforce close on the server side
  * - WANT_CLO : enforce close on both sides
index 4847defd1f8ead494390f8aea7af5fe5276488ee..1cabb8314f48596a2695074efd2f91544808bc05 100644 (file)
@@ -43,7 +43,7 @@
 #include <types/checks.h>
 
 
-/* server states. Only SRV_ST_DOWN indicates a down server. */
+/* server states. Only SRV_ST_STOPPED indicates a down server. */
 enum srv_state {
        SRV_ST_STOPPED = 0,              /* the server is down. Please keep set to zero. */
        SRV_ST_STARTING,                 /* the server is warming up (up but throttled) */
index e2221603eb0b947ded5b7e06a7c1b3740541a38d..70ddaa7d1037c0f83fafc1f46fd5686a3bfe09eb 100644 (file)
@@ -553,7 +553,7 @@ int assign_server(struct session *s)
               (__objt_server(conn->target)->nbpend + 1) < s->be->max_ka_queue))) &&
            srv_is_usable(__objt_server(conn->target))) {
                /* This session was relying on a server in a previous request
-                * and the proxy has "option prefer-current-server" set, so
+                * and the proxy has "option prefer-last-server" set, so
                 * let's try to reuse the same server.
                 */
                srv = __objt_server(conn->target);