summaryrefslogtreecommitdiff
path: root/libavformat/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/tcp.c')
-rw-r--r--libavformat/tcp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c
index b144e31457..963a993495 100644
--- a/libavformat/tcp.c
+++ b/libavformat/tcp.c
@@ -97,7 +97,6 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
}
if (ret < 0) {
- int timeout=50;
struct pollfd p = {fd, POLLOUT, 0};
ret = ff_neterrno();
if (ret == AVERROR(EINTR)) {
@@ -120,12 +119,6 @@ static int tcp_open(URLContext *h, const char *uri, int flags)
ret = poll(&p, 1, 100);
if (ret > 0)
break;
- if(!--timeout){
- av_log(NULL, AV_LOG_ERROR,
- "TCP open %s:%d timeout\n",
- hostname, port);
- goto fail;
- }
}
if (ret <= 0) {
ret = AVERROR(ETIMEDOUT);