https://gitlab.synchro.net/main/sbbs/-/commit/05048761b284b8a78a93decd
Modified Files:
src/syncterm/CHANGES conn.c ssh.c
Log Message:
syncterm: pin SO_SNDBUF/SO_RCVBUF to 1 MiB on all TCP connections
ssh.c set SO_SNDBUF=1 MiB after connect but left SO_RCVBUF at the
kernel default, and the other TCP transports (telnet, telnets, rlogin,
raw) inherited Windows' ~8 KiB defaults for both directions. A telnet
download on Windows therefore capped at roughly RCVBUF/RTT Ä about
400 KiB/s on a 20 ms link Ä regardless of how fast the server streamed.
Lift the buffer setup into conn_socket_connect() so every TCP transport
gets a 1 MiB baseline in both directions. ssh_set_sftp_buffer_mode()
still dynamically drops SO_SNDBUF to 64 KiB during SFTP activity so
keystrokes don't queue behind bulk data; the connect-time 1 MiB is the
value it restores to.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net