aboutsummaryrefslogtreecommitdiff
path: root/libexec/tcpd/Makefile.depend
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2026-10-02 02:53:40 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2026-10-02 02:53:40 +0000
commit6948f4d5e2b29100b986a96175ef9efb1ab91616 (patch)
tree660a6f12c39e313b583f80f9af21b440de20d834 /libexec/tcpd/Makefile.depend
parente65b7079db12afb1aa61be4f1c666b162984a95e (diff)
sendfile: keep the lowat hack more conservativeHEADmain
First, record the original lowat value and later in the wait/EAGAIN loop look at the original value, rather than on the value that we just faked. This eliminates some blank syscalls, where socket was reported as writable and immediate write instantly fails. In my testing the ratio of such syscalls was really small, under 2%, however in a different scenario this negative effect can be more profound. Second, cap the lowat growth to 1/2 of original socket buffer size, rather than to current size. The problem was there before, but it became more profound after 587c6c121504. Note: we are considering to evaluate if the lowat hack is needed at all. Reviewed by: tuexen Differential Revision: https://reviews.freebsd.org/D60106
Diffstat (limited to 'libexec/tcpd/Makefile.depend')
0 files changed, 0 insertions, 0 deletions