Re: Bad transfer performance with FTP on high latency links
Thank you. Increasing the SO_SNDBUF size fixes upload. (For me uploading to server with RTT 40ms, bumped from 600kB/s to 8-10MB/s which is link maximum; over 10x improvement).
It might be useful to have receive buffers (SO_RCVBUF) set too for downloading. Windows Vista and newer are supposed to have automatic TCP-buffer sizing, if it's not explicitly set. But I've seen it fail under certain circumstances. Additionally Windows XP and earlier set it incorrectly. <invalid hyperlink removed by admin> implies that Windows XP would never choose large enough buffer without registry modifications.
So it might be useful to have optionally set both the receive and send buffers.