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