From 35bed44fc95eb1165f75b0c513d743f79ce8410c Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 30 May 2011 02:39:26 +0200 Subject: [PATCH] TCP: change default timeout to 5sec Signed-off-by: Michael Niedermayer --- libavformat/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 963a993495..eb982d5675 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -45,7 +45,7 @@ static int tcp_open(URLContext *h, const char *uri, int flags) char buf[256]; int ret; socklen_t optlen; - int timeout = 100; + int timeout = 50; char hostname[1024],proto[1024],path[1024]; char portstr[10];