-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
Description
Currently, the ssh packages uses a 16 KB window size for all channels. Given the windowing mechanism, this pretty much limits transfer rates to 16 KB * RTT which can be very little indeed for high latency connections. OpenSSH uses a max packet size if 32 KB (as does go.crypto/ssh) and a window size of 64 * packet size (i.e. 2 MB) for session and tcpip channels. (See CHAN_SES_WINDOW_DEFAULT and friends in channels.h in the OpenSSH code). This patch updates go.crypto/ssh to do the same. For my use cases it bumps transfer rates for high latency connections from unusable to comfortable.
Attachments:
- window-size.diff (2097 bytes)