+2005-03-15 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * retr.c (fd_read_body): Undo the 2004-11-18 change. Instead,
+ always be "exact".
+
2005-03-17 Hrvoje Niksic <hniksic@xemacs.org>
* ftp-basic.c (ftp_login): Don't free the string if ftp_response
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. */
}
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)