Skip to content

Enable TCP_NODELAY on webserver connections - #899

Merged
TBlueF merged 1 commit into
BlueMap-Minecraft:masterfrom
Hexay:webserver-tcp-nodelay
Oct 29, 2026
Merged

TBlueF merged 1 commit into
BlueMap-Minecraft:masterfrom
Hexay:webserver-tcp-nodelay

Conversation

@Hexay

@Hexay Hexay commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

A small body waits until the client ACKs the headers. The client delays that ACK by about 40 ms on Linux, and up to 200 ms on Windows. So on a keep-alive connection, every small response stalls by that delay.

Responses are written as separate headers and body writes. With Nagle's
algorithm on, the body waits for the client to ACK the headers, which the
client delays by ~40 ms, so every keep-alive response stalls.

Claude-Session: https://claude.ai/code/session_01TzWnhfE6xe8fyhLCsq3naM
@TBlueF
TBlueF merged commit e9e72fa into BlueMap-Minecraft:master Oct 29, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants