"When the filesize is known from content-length header, safe_fread is
authorGlenn L McGrath <bug1@ihug.co.nz>
Thu, 28 Aug 2003 21:55:22 +0000 (21:55 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Thu, 28 Aug 2003 21:55:22 +0000 (21:55 -0000)
commit83e4a5bccf3b06f9b2cbd708d48d1ea0602297c6
tree459bcd4f0aca9d75f883b91130fd4236e06b6d5c
parent8b96b7169d0af8c1b7ede14755a8bd4492f894d0
"When the filesize is known from content-length header, safe_fread is
always told to read sizeof(buf).  This waits until the underlying
fread() to time-out for the last part of the downloaded body.  Fix
this by sending the number of remaining bytes to read when known." -
junkio@
I reworked the logic in his patch
networking/wget.c