]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: tfo: bump required kernel to linux-3.7
authorLukas Tribus <luky-37@hotmail.com>
Wed, 13 Feb 2013 22:35:39 +0000 (23:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 13 Feb 2013 23:03:04 +0000 (00:03 +0100)
Support for server side TFO was actually introduced in linux-3.7,
linux-3.6 just has client support.

This patch fixes documentation and a code comment about the
kernel requirement. It also fixes a wrong tfo related code
comment in src/proto_tcp.c.

doc/configuration.txt
include/types/listener.h
src/proto_tcp.c

index 49e64c5ac66c807f278421dd55d2de6579f74027..70a5188862348463f4c5ac69fd58a3179e1351ef 100644 (file)
@@ -7287,7 +7287,7 @@ strict-sni
   See the "crt" option for more information.
 
 tfo
-  Is an optional keyword which is supported only on Linux kernels >= 3.6. It
+  Is an optional keyword which is supported only on Linux kernels >= 3.7. It
   enables TCP Fast Open on the listening socket, which means that clients which
   support this feature will be able to send a request and receive a response
   during the 3-way handshake starting from second connection, thus saving one
index 2f584e3f297556935db07d71617b1e66e79de9d6..6e931255721c565629f8b7e97964b8b72cd89900 100644 (file)
@@ -89,7 +89,7 @@ enum {
 #define LI_O_CHK_MONNET 0x0020  /* check the source against a monitor-net rule */
 #define LI_O_ACC_PROXY  0x0040  /* find the proxied address in the first request line */
 #define LI_O_UNLIMITED  0x0080  /* listener not subject to global limits (peers & stats socket) */
-#define LI_O_TCP_FO     0x0100  /* enable TCP Fast Open (linux >= 3.6) */
+#define LI_O_TCP_FO     0x0100  /* enable TCP Fast Open (linux >= 3.7) */
 #define LI_O_V6ONLY     0x0200  /* bind to IPv6 only on Linux >= 2.4.21 */
 #define LI_O_V4V6       0x0400  /* bind to IPv4/IPv6 on Linux >= 2.4.21 */
 
index 60b111c71fd83cae2562547cde5fd2d0dc950947..6bd576179576fe47a8176c7ad2914eaefedc739b 100644 (file)
@@ -1776,7 +1776,7 @@ static int bind_parse_defer_accept(char **args, int cur_arg, struct proxy *px, s
 #endif
 
 #ifdef TCP_FASTOPEN
-/* parse the "defer-accept" bind keyword */
+/* parse the "tfo" bind keyword */
 static int bind_parse_tfo(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
 {
        struct listener *l;