Last active
October 19, 2016 06:33
-
-
Save n0ts/150118b14dfd6041a333aaa8a45f4778 to your computer and use it in GitHub Desktop.
TCP_TIMEWAIT_LEN patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./include/net/tcp.h-org 2016-10-18 18:14:54.051023657 +0900 | |
+++ ./include/net/tcp.h 2016-10-19 13:51:41.959816976 +0900 | |
@@ -111,8 +111,8 @@ | |
* initial RTO. | |
*/ | |
-#define TCP_TIMEWAIT_LEN (60*HZ) /* how long to wait to destroy TIME-WAIT | |
- * state, about 60 seconds */ | |
+#define TCP_TIMEWAIT_LEN (1*HZ) /* how long to wait to destroy TIME-WAIT | |
+ * state, about 1 second */ | |
#define TCP_FIN_TIMEOUT TCP_TIMEWAIT_LEN | |
/* BSD style FIN_WAIT2 deadlock breaker. | |
* It used to be 3min, new value is 60sec, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment