From b1fdae4f897451b066f0c6f29c21c57491ea1f6d Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Escudier?= Date: Mon, 16 Mar 2009 14:33:50 +0100 Subject: [PATCH] Enable tcp keep alive in http MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- modules/access/http.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/access/http.c b/modules/access/http.c index 4d27b83d38..d53b6c320a 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -1019,6 +1019,7 @@ static int Connect( access_t *p_access, int64_t i_tell ) msg_Err( p_access, "cannot connect to %s:%d", srv.psz_host, srv.i_port ); return -1; } + setsockopt (p_sys->fd, SOL_SOCKET, SO_KEEPALIVE, &(int){ 1 }, sizeof (int)); /* Initialize TLS/SSL session */ if( p_sys->b_ssl == true ) -- 2.39.2