]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: tcp: add the "tfo" option to support TCP fastopen on the server
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Jan 2017 22:36:45 +0000 (23:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 May 2019 20:29:39 +0000 (22:29 +0200)
commit034c88cf03a5102cc05d796e3d6f22a802f1cf76
tree4cca99d22ecd6aa8424d6836acc1806986bb9ae0
parentfdcb007ad899e8565159b3d29c5f76b0403ef81f
MEDIUM: tcp: add the "tfo" option to support TCP fastopen on the server

This implements support for the new API which relies on a call to
setsockopt().
On systems that support it (currently, only Linux >= 4.11), this enables
using TCP fast open when connecting to server.
Please note that you should use the retry-on "conn-failure", "empty-response"
and "response-timeout" keywords, or the request won't be able to be retried
on failure.

Co-authored-by: Olivier Houchard <ohouchard@haproxy.com>
doc/configuration.txt
include/common/compat.h
include/proto/stream_interface.h
include/types/protocol.h
include/types/server.h
src/cfgparse.c
src/proto_tcp.c
src/raw_sock.c
src/server.c