X-Git-Url: http://sjero.net/git/?a=blobdiff_plain;f=src%2Fretr.c;h=ad075f2f9df17a404e0b9d8fb8569cb1909b4aa6;hb=828a50e4f37b2d18ead2a020b0b272594faf2c9d;hp=978fb7284036960cc0dc3dc2605e8b7d90644d0f;hpb=72ce32e8aba16a4b593ff313bb159155d983937a;p=wget diff --git a/src/retr.c b/src/retr.c index 978fb728..ad075f2f 100644 --- a/src/retr.c +++ b/src/retr.c @@ -214,7 +214,8 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos, data arrives slowly. */ int progress_interactive = 0; - int exact = flags & rb_read_exactly; + /*int exact = flags & rb_read_exactly;*/ + int exact = 1; wgint skip = 0; /* How much data we've read/written. */ @@ -285,13 +286,6 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos, } ret = fd_read (fd, dlbuf, rdsize, tmout); - /* when retrieving from http-proxy wget sometimes does not trust the - * file length reported by server. - * this check is to tell wget not to stubbornly try to read again and - * again until another errno code was received. */ - if ( ret == -1 && errno == ETIMEDOUT && sum_read == toread && toread > 0 ) - break; - if (ret == 0 || (ret < 0 && errno != ETIMEDOUT)) break; /* read error */ else if (ret < 0)