Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/ftp



Module Name:    src
Committed By:   lukem
Date:           Sat Feb  7 03:11:20 UTC 2026

Modified Files:
        src/usr.bin/ftp: cmds.c fetch.c ftp.1 ftp.c ftp_var.h main.c util.c
            version.h

Log Message:
ftp: simplify socket buffer handling to improve performance

Only set the socket buffer sizes if the user explicitly sets the
rcvbuf (SO_RCVBUF) or sndbuf (SO_SNDBUF) to a positive value.
Otherwise leave to the operating system default.

Determine the transfer size based on the socket buffer size
clamped to 1 KiB .. 128 KiB, using using the maximum (128 KiB)
if the socket buffer size is 0 (autodetect).

Improves transfer performance on long fat links.

Bump version to 20260207.

PR bin/59865 from Christof Meerwald.


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/usr.bin/ftp/cmds.c
cvs rdiff -u -r1.243 -r1.244 src/usr.bin/ftp/fetch.c
cvs rdiff -u -r1.162 -r1.163 src/usr.bin/ftp/ftp.1
cvs rdiff -u -r1.180 -r1.181 src/usr.bin/ftp/ftp.c
cvs rdiff -u -r1.90 -r1.91 src/usr.bin/ftp/ftp_var.h
cvs rdiff -u -r1.136 -r1.137 src/usr.bin/ftp/main.c
cvs rdiff -u -r1.170 -r1.171 src/usr.bin/ftp/util.c
cvs rdiff -u -r1.102 -r1.103 src/usr.bin/ftp/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index