]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Switch to flow-control-based SFTP uploading.
authorBen Harris <bjh21@bjh21.me.uk>
Fri, 8 Apr 2016 23:24:12 +0000 (00:24 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 9 Apr 2016 16:20:07 +0000 (17:20 +0100)
commit5c42f97b68aa843693088d398ced48d03922ed9a
tree5b3a5560af0bbfc2c8e8f28ee9263ac134c71404
parentcb366681859e000a06660139fd335fb6355f075d
Switch to flow-control-based SFTP uploading.

Formerly PuTTY's SFTP code would transmit (or buffer) a megabyte of data
before even starting to look for acknowledgements, but wouldn't allow
there to be more than a megabyte of unacknowledged data at a time.  Now,
instead, it pays attention to whether the transmit path is blocked, and
transmits iff it isn't.

This should mean that SFTP goes faster over long fat pipes, and also
doesn't end up buffering so much over thin ones.

I practice, I tend to run into other performance limitations (such as
TCP or SSH-2 windows) before this enhancement looks particularly good,
but with an artificial lag of 250 ms on the loopback interface this
patch almost doubles my upload speed, so I think it's worthwhile.
pscp.c
psftp.c
sftp.c
sftp.h