rack: unbreak TCP fast open for the client side

Allow sending user data on the SYN segment.

Reviewed by:		rrs
MFC after:		3 days
Differential Revision:	https://reviews.freebsd.org/D29082
Sponsored by:		Netflix, Inc.
This commit is contained in:
Michael Tuexen 2021-03-05 15:57:26 +01:00
parent 6781b8a32e
commit 705d06b289

View File

@ -12297,7 +12297,8 @@ rack_output(struct tcpcb *tp)
* If sack_rxmit is true we are retransmitting from the scoreboard
* in which case len is already set.
*/
if ((sack_rxmit == 0) && TCPS_HAVEESTABLISHED(tp->t_state)) {
if ((sack_rxmit == 0) &&
(TCPS_HAVEESTABLISHED(tp->t_state) || IS_FASTOPEN(tp->t_flags))) {
uint32_t avail;
avail = sbavail(sb);