summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v4.14.127/0002-pool-2.6.25-tcp-timewait-20s.diff.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/boest-v4.14.127/0002-pool-2.6.25-tcp-timewait-20s.diff.patch')
-rw-r--r--sys-kernel/boest-v4.14.127/0002-pool-2.6.25-tcp-timewait-20s.diff.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-kernel/boest-v4.14.127/0002-pool-2.6.25-tcp-timewait-20s.diff.patch b/sys-kernel/boest-v4.14.127/0002-pool-2.6.25-tcp-timewait-20s.diff.patch
new file mode 100644
index 00000000..51c2567b
--- /dev/null
+++ b/sys-kernel/boest-v4.14.127/0002-pool-2.6.25-tcp-timewait-20s.diff.patch
@@ -0,0 +1,27 @@
+From 9957828e7d9846452d5c3e9e6a84985554e9fd69 Mon Sep 17 00:00:00 2001
+From: Willy Tarreau <w@1wt.eu>
+Date: Sun, 15 Feb 2009 14:51:33 +0100
+Subject: [PATCH 02/19] pool/2.6.25-tcp-timewait-20s.diff
+
+From http://linux.1wt.eu/alix/kernel-src/2.6.27-wt11/patches-2.6.27-wt11.tar.bz2
+
+Signed-off-by: Bertrand Jacquin <bertrand@jacquin.bzh>
+---
+ include/net/tcp.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/include/net/tcp.h b/include/net/tcp.h
+index 1179ef4f0768..02600c711f4c 100644
+--- a/include/net/tcp.h
++++ b/include/net/tcp.h
+@@ -122,8 +122,8 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);
+ * initial RTO.
+ */
+
+-#define TCP_TIMEWAIT_LEN (60*HZ) /* how long to wait to destroy TIME-WAIT
+- * state, about 60 seconds */
++#define TCP_TIMEWAIT_LEN (20*HZ) /* how long to wait to destroy TIME-WAIT
++ * state, about 20 seconds */
+ #define TCP_FIN_TIMEOUT TCP_TIMEWAIT_LEN
+ /* BSD style FIN_WAIT2 deadlock breaker.
+ * It used to be 3min, new value is 60sec,