Skip to content

lib: drop using linux/tcp.h kernel header for the FastOpen feature - #23618

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:fastopen-macro
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:fastopen-macro

Conversation

@vszakats

@vszakats vszakats commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Rely on POSIX netinet/tcp.h header for the TCP_FASTOPEN_CONNECT
macro (and for TCP_NODELAY).

TCP_FASTOPEN_CONNECT is defined by:

  • glibc 2.26+ (2017-08-02)
  • musl 1.1.19+ (2018-02-22)
  • bionic (similar time frame)

This feature requires Linux kernel 4.11+ (2017-05-01), e.g. via
debian:buster, which also comes with compatible glibc and musl libs.

Follow-up to 2ac9e4c #23601
Follow-up to 979b012 #2056

Rely on glibc/musl `netinet/tcp.h` for the `TCP_FASTOPEN_CONNECT` macro,
(and for `TCP_NODELAY`).

`TCP_FASTOPEN_CONNECT` is provided by:
- glibc 2.26+
- musl 1.1.19+

Follow-up to 2ac9e4c curl#23601
Follow-up to 979b012 curl#2056
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant