]> git.ipfire.org Git - thirdparty/curl.git/commit
build: disable `TCP_NODELAY` for emscripten
authorViktor Szakats <commit@vsz.me>
Sun, 3 Aug 2025 21:48:53 +0000 (23:48 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 4 Aug 2025 22:34:24 +0000 (00:34 +0200)
commit06c12cc08b24cf74dc2c8b92ec9d545cb829f12a
tree862b8bb588f53a6d054da9f4c4894adc71acd9dc
parent74ba04f5b2f41f158919d6c5c6c04164b0a915ec
build: disable `TCP_NODELAY` for emscripten

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
Closes #18155
lib/cf-socket.c
lib/curl_setup.h
tests/server/rtspd.c
tests/server/sws.c