commit | 83e4a5bccf3b06f9b2cbd708d48d1ea0602297c6 | [log] [tgz] |
---|---|---|
author | Glenn L McGrath <bug1@ihug.co.nz> | Thu Aug 28 21:55:22 2003 +0000 |
committer | Glenn L McGrath <bug1@ihug.co.nz> | Thu Aug 28 21:55:22 2003 +0000 |
tree | 459bcd4f0aca9d75f883b91130fd4236e06b6d5c | |
parent | 8b96b7169d0af8c1b7ede14755a8bd4492f894d0 [diff] |
"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