Commit b1fdae4f authored by Sébastien Escudier's avatar Sébastien Escudier Committed by Rémi Denis-Courmont

Enable tcp keep alive in http

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 2c4367b3
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment