[vlc-devel] commit: Enable tcp keep alive in http ( Sébastien Escudier )
git version control
git at videolan.org
Mon Mar 16 17:29:46 CET 2009
vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Mon Mar 16 14:33:50 2009 +0100| [b1fdae4f897451b066f0c6f29c21c57491ea1f6d] | committer: Rémi Denis-Courmont
Enable tcp keep alive in http
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b1fdae4f897451b066f0c6f29c21c57491ea1f6d
---
modules/access/http.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 4d27b83..d53b6c3 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 )
More information about the vlc-devel
mailing list