1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-14 09:37:34 -05:00

Lionel Fourquaux offers this very simple patch to speed up SFTP,

simply by upping the packet sizes and maximum in-flight packet
count. Got to be worth a try, I think!

[originally from svn r6722]
This commit is contained in:
Simon Tatham
2006-06-02 08:46:34 +00:00
parent 5489c56a08
commit bbec032476
2 changed files with 4 additions and 4 deletions

4
sftp.c
View File

@ -1129,7 +1129,7 @@ static struct fxp_xfer *xfer_init(struct fxp_handle *fh, uint64 offset)
xfer->offset = offset;
xfer->head = xfer->tail = NULL;
xfer->req_totalsize = 0;
xfer->req_maxsize = 16384;
xfer->req_maxsize = 1048576;
xfer->err = 0;
xfer->filesize = uint64_make(ULONG_MAX, ULONG_MAX);
xfer->furthestdata = uint64_make(0, 0);
@ -1169,7 +1169,7 @@ void xfer_download_queue(struct fxp_xfer *xfer)
xfer->tail = rr;
rr->next = NULL;
rr->len = 4096;
rr->len = 32768;
rr->buffer = snewn(rr->len, char);
sftp_register(req = fxp_read_send(xfer->fh, rr->offset, rr->len));
fxp_set_userdata(req, rr);