Skip to content

fix(test-server): disable Nagle on the server socket - #823

Draft
lucasmcdonald3 wants to merge 1 commit into
kessplas/esdk-test-serverfrom
lucmcdon/test-server-tcp-nodelay
Draft

lucasmcdonald3 wants to merge 1 commit into
kessplas/esdk-test-serverfrom
lucmcdon/test-server-tcp-nodelay

Conversation

@lucasmcdonald3

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Disable Nagle on the test server's connections.

The handler writes each response's headers and body in separate sends. With Nagle on, the body waits for the client to ACK the headers, which costs ~50 ms per request on every kept-alive connection.

Per request (local, CreateClient + Decrypt of a 10 KB message)

  • Before: ~100 ms per pair, ~10 pairs/s on one connection, ~150/s at 16 connections.
  • After: ~2 ms per pair, ~450-490 pairs/s at any concurrency.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Check any applicable:

  • Were any files moved? Moving files changes their URL, which breaks all hyperlinks to the files.

This branch has not been deployed

No deployments
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.

1 participant