Skip to content

build: disable TCP_NODELAY for emscripten#18155

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:nodelay
Closed

build: disable TCP_NODELAY for emscripten#18155
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:nodelay

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Aug 3, 2025

In WebAssembly, using TCP_NODELAY fails with:

* Could not set TCP_NODELAY: Protocol not available

Add a new feature macro in curl_setup.h telling whether TCP_NODELAY
is known to be supported at runtime, when defined at compile-time.

Keep TCP_NODELAY guards at their current positions to ensure the
necessary headers (e.g. netinet/tcp.h and netinet/in.h) define it.

Reported-by: Jeroen Ooms
Fixes #17974


Can be generalized more in case other platforms also
need this, but for now keep it simple?

@vszakats vszakats closed this in 06c12cc Aug 4, 2025
@vszakats vszakats deleted the nodelay branch August 4, 2025 22:36
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.

Disable TCP_NODELAY at build time on unsupported platforms?

1 participant