readwrite_upload: stop upload at file size
authorDaniel Stenberg <daniel@haxx.se>
Sat, 12 Mar 2011 22:05:11 +0000 (23:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 12 Mar 2011 22:05:11 +0000 (23:05 +0100)
commita07a865d5dff76fdaed2f2c6373f89fde73037f8
treec5abb1789e919d9dc48dfe8e8c765c374e4d3eb7
parentcccba72920ace26f1ecdf496546a2441304df410
readwrite_upload: stop upload at file size

As we know how much to send, we can and should stop once we've sent that
much data as it avoids having to rely on other mechanisms to detect the
end.

This is one of the problems detected by test 582.

Reported by: Henry Ludemann <misc@hl.id.au>
lib/transfer.c