TCP Fast Open
tuexen at freebsd.org
Thu Dec 5 18:28:43 UTC 2019
> On 5. Dec 2019, at 16:25, Jeremy Harris <jgh at wizmail.org> wrote:
> 12.1 kernel with TCP_RFC7413
> net.inet.tcp.fastopen.server_enable: 1
> net.inet.tcp.fastopen.client_enable: 1
> Using code copied from
> I'm not seeing any TFO option on SYN. This is on a loopback
> Also, it appears to make no difference to the success of the
> sendto whether or not TCP_FASTOPEN was set on the socket, adding to
> the confusion.
> What might I be doing wrong?
The program works (on FreeBSD head, but I do not expect a difference to 12.1).
However, you need a server having TCP FO enabled.
I would expect the TFO option being present on the first connection attempt.
If the server does not support TFO, the following attempts will not have the
Can you provide the output of
sudo sysctl net.inet.tcp.fastopen.ccache_list
after at least one attempt.
On my system I see
> sudo sysctl net.inet.tcp.fastopen.ccache_list
Local IP address Remote IP address Port MSS Disabled Cookie
127.0.0.1 127.0.0.1 80 16344 No 4c402b8365433ca7
Whether TFO is used or not has no impact on the return value of sendto().
> freebsd-transport at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-transport-unsubscribe at freebsd.org"
More information about the freebsd-transport