Use new limits@openssh.com protocol extension to let the client select
authordjm <djm@openbsd.org>
Wed, 31 Mar 2021 22:16:34 +0000 (22:16 +0000)
committerdjm <djm@openbsd.org>
Wed, 31 Mar 2021 22:16:34 +0000 (22:16 +0000)
commit5428fda9912ff4dc07d453dd4fca3fe2960f82a4
treef7c70dddba5436100e8960032c4d2b10d557c6d3
parent81f17920895eac29225f190152d72b1d36f7a6b4
Use new limits@openssh.com protocol extension to let the client select
good limits based on what the server supports. Split the download and
upload buffer sizes to allow them to be chosen independently.

In practice (and assuming upgraded sftp/sftp-server at each end), this
increases the download buffer 32->64KiB and the upload buffer
32->255KiB.

Patches from Mike Frysinger; ok dtucker@
usr.bin/ssh/sftp-client.c
usr.bin/ssh/sftp-client.h
usr.bin/ssh/sftp.c