HomeFreeBSD

TCP window updates are only sent if the window can be increased by at

Description

TCP window updates are only sent if the window can be increased by at
least 2 * MSS. However, if the receive buffer size is small, this might
be impossible. Add back a criterion to send a TCP window update if
the window can be increased by at least half of the receive buffer size.
This condition was removed in r242252. This patch simply brings it back.
PR: 211003
Reviewed by: gnn
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D9475

Details

Provenance
tuexenAuthored on
Reviewer
gnn
Differential Revision
D9475: Improve sending of TCP window updates
Parents
rS314154: Fix memory leaks in error cases in libdtrace.
Branches
Unknown
Tags
Unknown