From 801a0a353a29cfc7c91dcc93897531c9f2cbf62f Mon Sep 17 00:00:00 2001 From: Jamie Gloudon Date: Sat, 25 Aug 2012 00:18:33 -0400 Subject: [PATCH] DOC: fix name for "option independant-streams" The correct spelling is "independent", not "independant". This patch fixes the doc and the configuration parser to accept the correct form. The config parser still allows the old naming for backwards compatibility. --- doc/configuration.txt | 20 ++++++++++++-------- doc/haproxy-en.txt | 4 ++-- include/types/proxy.h | 2 +- include/types/stream_interface.h | 4 ++-- src/cfgparse.c | 1 + src/checks.c | 2 +- src/sock_raw.c | 6 +++--- 7 files changed, 22 insertions(+), 17 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index 12fb4d2af9..04f3900b6b 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -874,7 +874,7 @@ during a reload, it typically takes a fraction of a second even for large tables. peers - Creates a new peer list with name . It is an independant section, + Creates a new peer list with name . It is an independent section, which is referenced by one or more stick-tables. peer : @@ -1026,7 +1026,7 @@ option httpchk X - X X option httpclose (*) X X X X option httplog X X X X option http_proxy (*) X X X X -option independant-streams (*) X X X X +option independent-streams (*) X X X X option ldap-check X - X X option log-health-checks (*) X - X X option log-separate-errors (*) X X X - @@ -1507,7 +1507,7 @@ bind / [, ...] [ group | gid ] couple must be used only once among all instances running on a same system. Please note that binding to ports lower than 1024 generally require particular - privileges to start the program, which are independant of + privileges to start the program, which are independent of the 'uid' parameter. is a UNIX socket path beginning with a slash ('/'). This is @@ -3538,9 +3538,9 @@ no option http_proxy See also : "option httpclose" -option independant-streams -no option independant-streams - Enable or disable independant timeout processing for both directions +option independent-streams +no option independent-streams + Enable or disable independent timeout processing for both directions May be used in sections : defaults | frontend | listen | backend yes | yes | yes | yes Arguments : none @@ -3568,6 +3568,10 @@ no option independant-streams data sent to the server. Doing so will typically break large HTTP posts from slow lines, so use it with caution. + Note: older versions used to call this setting "option independant-streams" + with a spelling mistake. This spelling is still supported but + deprecated. + See also : "timeout client", "timeout server" and "timeout tunnel" @@ -7390,7 +7394,7 @@ following situations : A first set of criteria applies to information which does not require any analysis of the request or response contents. Those generally include TCP/IP -addresses and ports, as well as internal values independant on the stream. +addresses and ports, as well as internal values independent on the stream. always_false This one never matches. All values and flags are ignored. It may be used as @@ -8423,7 +8427,7 @@ and to every request on the "img", "video", "download" and "ftp" hosts : It is also possible to form rules using "anonymous ACLs". Those are unnamed ACL expressions that are built on the fly without needing to be declared. They must be enclosed between braces, with a space before and after each brace (because -the braces must be seen as independant words). Example : +the braces must be seen as independent words). Example : The following rule : diff --git a/doc/haproxy-en.txt b/doc/haproxy-en.txt index 32f52be133..6a7aa01d5d 100644 --- a/doc/haproxy-en.txt +++ b/doc/haproxy-en.txt @@ -408,7 +408,7 @@ Service sections start with the 'listen' keyword : descriptors with a simple range. The couple must be used only once among all instances running on a same system. Please note that attaching to ports lower than 1024 need particular priviledges to start the program, which - are independant of the 'uid' parameter. + are independent of the 'uid' parameter. - the : couple may be repeated indefinitely to require the proxy to listen to other addresses and/or ports. To achieve this, simply @@ -630,7 +630,7 @@ of this allows a configuration reload without service interruption : 2.5) Connections expiration time -------------------------------- It is possible (and recommended) to configure several time-outs on TCP -connections. Three independant timers are adjustable with values specified +connections. Three independent timers are adjustable with values specified in milliseconds. A session will be terminated if either one of these timers expire. diff --git a/include/types/proxy.h b/include/types/proxy.h index 53dd96d7b7..c93edd2fd8 100644 --- a/include/types/proxy.h +++ b/include/types/proxy.h @@ -119,7 +119,7 @@ enum { #define PR_O2_RDPC_PRST 0x00000200 /* Actvate 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 /* independant streams, don't update rex on write */ +#define PR_O2_INDEPSTR 0x00001000 /* independent streams, don't update rex on write */ #define PR_O2_SOCKSTAT 0x00002000 /* collect & provide separate statistics for sockets */ /* appsession */ diff --git a/include/types/stream_interface.h b/include/types/stream_interface.h index b11b398bdd..311cf0e7a5 100644 --- a/include/types/stream_interface.h +++ b/include/types/stream_interface.h @@ -28,7 +28,7 @@ #include #include -/* A stream interface must have its own errors independantly of the buffer's, +/* A stream interface must have its own errors independently of the buffer's, * so that applications can rely on what the buffer reports while the stream * interface is performing some retries (eg: connection error). Some states are * transient and do not last beyond process_session(). @@ -70,7 +70,7 @@ enum { SI_FL_WAIT_DATA = 0x0008, /* waiting for more data to send */ SI_FL_CAP_SPLTCP = 0x0010, /* splicing possible from/to TCP */ SI_FL_DONT_WAKE = 0x0020, /* resync in progress, don't wake up */ - SI_FL_INDEP_STR = 0x0040, /* independant streams = don't update rex on write */ + SI_FL_INDEP_STR = 0x0040, /* independent streams = don't update rex on write */ SI_FL_NOLINGER = 0x0080, /* may close without lingering. One-shot. */ SI_FL_NOHALF = 0x0100, /* no half close, close both sides at once */ SI_FL_SRC_ADDR = 0x1000, /* get the source ip/port with getsockname */ diff --git a/src/cfgparse.c b/src/cfgparse.c index 7a0e9783b8..e8e640ab8d 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -161,6 +161,7 @@ static const struct cfg_opt cfg_opts2[] = { "tcp-smart-accept", PR_O2_SMARTACC, PR_CAP_FE, 0, 0 }, { "tcp-smart-connect", PR_O2_SMARTCON, PR_CAP_BE, 0, 0 }, { "independant-streams", PR_O2_INDEPSTR, PR_CAP_FE|PR_CAP_BE, 0, 0 }, + { "independent-streams", PR_O2_INDEPSTR, PR_CAP_FE|PR_CAP_BE, 0, 0 }, { "http-use-proxy-header", PR_O2_USE_PXHDR, PR_CAP_FE, 0, PR_MODE_HTTP }, { "http-pretend-keepalive", PR_O2_FAKE_KA, PR_CAP_FE|PR_CAP_BE, 0, PR_MODE_HTTP }, { "http-no-delay", PR_O2_NODELAY, PR_CAP_FE|PR_CAP_BE, 0, PR_MODE_HTTP }, diff --git a/src/checks.c b/src/checks.c index cf8b4eb9ea..3bf5ec6edf 100644 --- a/src/checks.c +++ b/src/checks.c @@ -1619,7 +1619,7 @@ int start_checks() { * We also determine the minimum interval among all of those which * have an interval larger than SRV_CHK_INTER_THRES. This interval * will be used to spread their start-up date. Those which have - * a shorter interval will start independantly and will not dictate + * a shorter interval will start independently and will not dictate * too short an interval for all others. */ for (px = proxy; px; px = px->next) { diff --git a/src/sock_raw.c b/src/sock_raw.c index 5194ea441b..376cd7c801 100644 --- a/src/sock_raw.c +++ b/src/sock_raw.c @@ -715,7 +715,7 @@ static int sock_raw_write(int fd) if (tick_isset(si->ib->rex) && !(si->flags & SI_FL_INDEP_STR)) { /* Note: to prevent the client from expiring read timeouts * during writes, we refresh it. We only do this if the - * interface is not configured for "independant streams", + * interface is not configured for "independent streams", * because for some applications it's better not to do this, * for instance when continuously exchanging small amounts * of data which can full the socket buffers long before a @@ -931,7 +931,7 @@ static void sock_raw_data_finish(struct stream_interface *si) * for incoming data or not. So in order to prevent the socket from * expiring read timeouts during writes, we refresh the read timeout, * except if it was already infinite or if we have explicitly setup - * independant streams. + * independent streams. */ ib->rex = tick_add_ifset(now_ms, ib->rto); } @@ -1059,7 +1059,7 @@ static void sock_raw_chk_snd(struct stream_interface *si) if (tick_isset(si->ib->rex) && !(si->flags & SI_FL_INDEP_STR)) { /* Note: to prevent the client from expiring read timeouts * during writes, we refresh it. We only do this if the - * interface is not configured for "independant streams", + * interface is not configured for "independent streams", * because for some applications it's better not to do this, * for instance when continuously exchanging small amounts * of data which can full the socket buffers long before a -- 2.39.5