HomeFreeBSD

tcp: prevent spurious empty segments and fix uncommon panic

Description

tcp: prevent spurious empty segments and fix uncommon panic

Only try sending more data on pure ACKs when there is
more data available in the send buffer.

In the case of a retransmitted SYN not being sent due to
an internal error, the snd_una/snd_nxt accounting could
be off, leading to a panic. Pulling snd_nxt up to snd_una
prevents this from happening.

Reported by: fengdreamer@126.com
Reviewed by: cc, tuexen, transport
MFC after: 1 week
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D43343

Details

Provenance
rscheffAuthored on Jan 8 2024, 8:25 AM
Reviewer
transport
Differential Revision
D43343: tcp: prevent spurious empty segments and fix uncommon panic
Parents
rGa4a838a31ac2: bhyveload: make error printing consistent
Branches
Unknown
Tags
Unknown