Browse Source

Merge commit '09c02b1' into cg_merges_20130513

Conflicts:
	util.c
Luke Dashjr 13 years ago
parent
commit
5b4851851d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      util.c

+ 3 - 3
util.c

@@ -234,14 +234,14 @@ out:
 
 static int keep_sockalive(SOCKETTYPE fd)
 {
-	const int tcp_keepidle = 60;
-	const int tcp_keepintvl = 60;
+	const int tcp_keepidle = 45;
+	const int tcp_keepintvl = 30;
 	const int keepalive = 1;
 	int ret = 0;
 
 
 #ifndef WIN32
-	const int tcp_keepcnt = 5;
+	const int tcp_keepcnt = 1;
 
 	if (unlikely(setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &keepalive, sizeof(keepalive))))
 		ret = 1;