From 7562559433e6bd3b9a8c5e93cc36460fd3d310e6 Mon Sep 17 00:00:00 2001 From: Lucas McDonald Date: Wed, 21 Oct 2026 20:58:38 +0000 Subject: [PATCH] fix(test-server): disable Nagle on the server socket --- test-server/esdk_test_server/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test-server/esdk_test_server/app.py b/test-server/esdk_test_server/app.py index d19cc8987..eee0e84d9 100644 --- a/test-server/esdk_test_server/app.py +++ b/test-server/esdk_test_server/app.py @@ -163,6 +163,10 @@ class RpcV2CborHandler(BaseHTTPRequestHandler): # each response (the HTTP/1.0 default, which caused intermittent # "received no bytes" transport errors on reused connections). protocol_version = "HTTP/1.1" + # Send each response as soon as it is written. The handler writes the headers + # and body separately, and with Nagle on the body waits ~50 ms for the + # client to ACK the headers. + disable_nagle_algorithm = True # Quiet the default per-request stderr logging. def log_message(self, *args): # noqa: D401