Skip to contentSkip to conversation

tcp: don't include Fast Open option in SYN-ACK on pure SYN-data

PATCH Neal Cardwell 1 participant 1 message Feb 6, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Neal Cardwell

author Acked-by
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines · Yuchung Cheng

If a server has enabled Fast Open and it receives a pure SYN-data packet (without a Fast Open option), it won't accept the data but it incorrectly returns a SYN-ACK with a Fast Open cookie and also increments the SNMP stat LINUX_MIB_TCPFASTOPENPASSIVEFAIL.

Quoted 8 lines

This patch makes the server include a Fast Open cookie in SYN-ACK only if the SYN has some Fast Open option (i.e., when client requests or presents a cookie).

---
 net/ipv4/tcp_fastopen.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

neal