From 6516c4f306f7772e81e9c906924e97295cb89a89 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Thu, 18 Jul 2013 20:08:38 +0000 Subject: Fixed buggy keep-alive handling, leading to waste connections --- src/htslib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/htslib.c') diff --git a/src/htslib.c b/src/htslib.c index d57b120..9a48b62 100644 --- a/src/htslib.c +++ b/src/htslib.c @@ -1441,7 +1441,7 @@ void treathead(t_cookie * cookie, char *adr, char *fil, htsblk * retour, p += strlen("max="); sscanf(p, "%d", &retour->keep_alive_max); } - if (retour->keep_alive_max <= 1 || retour->keep_alive_t < 3) { + if (retour->keep_alive_max <= 1 || retour->keep_alive_t < 1) { retour->keep_alive = 0; } } -- cgit v1.2.3