3 ms·
>One thing I found is SCP/SFTP is a really slow transfer protocol Just FYI, SFTP is an OK protocol hampered by really poor implementations. Daniel Stenberg (au
by drbawb 8y ago
>One thing I found is SCP/SFTP is a really slow transfer protocol
Just FYI, SFTP is an OK protocol hampered by really poor implementations. Daniel Stenberg (author of `curl`) has a really good write-up about why this is the case.[1] -- What it boils down to is SFTP is "chunk" oriented, not file oriented, and most implementations wait for an acknowledgement of each chunk before fetching the next one. The end result is you're artificially band-limited by your latency to the remote host. -- If an implementation (like libssh2) in-flights many chunks at once SFTP can go much faster.
Sadly a lot of SFTP clients don't seem to have gotten the memo.
[1]: https://daniel.haxx.se/blog/2010/12/08/making-sftp-transfers-fast/ https://daniel.haxx.se/blog/2010/12/08/making-sftp-transfers...