Skip to content

Instantly share code, notes, and snippets.

@n0ts
Last active October 19, 2016 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n0ts/150118b14dfd6041a333aaa8a45f4778 to your computer and use it in GitHub Desktop.
Save n0ts/150118b14dfd6041a333aaa8a45f4778 to your computer and use it in GitHub Desktop.
TCP_TIMEWAIT_LEN patch
--- ./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