summaryrefslogtreecommitdiffstats
path: root/sys-kernel/boest-v4.14.71/0002-pool-2.6.25-tcp-timewait-20s.diff.patch
blob: c790becdf3b8158b8298237f819a6d3ebbafd7a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 0e8f48723d0eff3d81572d04055259550337fdd8 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/18] 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 0c828aac7e04..00af98c93533 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -120,8 +120,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,