scp should not report 100% until the last byte is transferred

Philipp Marek philipp.marek at linbit.com
Thu Jan 12 21:40:30 EST 2012


On Thursday, 12. Jan 2012, Toralf Förster wrote:
> just my opinion, but yesterday I run into a case, where after 7 hours of
> transferring a file (a little bit greater than 1 GB) the scp reported
> 100% and after that exited with an error (AIX 7.1):
> 
> $ tsocks scp foo user at host:/tmp
> ...
> 100% 1101MB  44.2KB/s 448.0KB/s 7:05:38
> scp: /tmp/foo: File too large
> 
> Probably it should not be rounded up to 100% ?
Perhaps another part of the problem is that it doesn't wait for byte 
position acknowledgments from the remote side ...

I've seen it fill up the TCP buffers, and then stay at 100% for ~30 seconds 
until the buffers were drained over the slow connection.


Regards,

Phil


More information about the openssh-unix-dev mailing list