OSDN Git Service

TCP: change default timeout to 5sec
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 30 May 2011 00:39:26 +0000 (02:39 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 30 May 2011 00:39:26 +0000 (02:39 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tcp.c

index 963a993..eb982d5 100644 (file)
@@ -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];