Skip to content

Enable TCP_NODELAY in the 'swtpm' and 'mssim' TCTI modules - #3149

Merged
moritzbuhl merged 1 commit into
tpm2-software:masterfrom
danieltrick:master
Sep 16, 2026
Merged

moritzbuhl merged 1 commit into
tpm2-software:masterfrom
danieltrick:master

Conversation

@danieltrick

@danieltrick danieltrick commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

This patch enables the TCP_NODELAY flag (turns off Nagle's algorithm) for TCP connections in the 'swtpm' and 'mssim' TCTI modules. We have observed significantly lower delays for TPM operations with this change in our tests.

It is safe to do this directly in socket_connect(), since that function is only used in tcti-mssim.c and tcti-swtpm.c.

@danieltrick
danieltrick force-pushed the master branch 2 times, most recently from f4612ab to fed6106 Compare September 15, 2026 15:07
…ions in the 'swtpm' and 'mssim' TCTI modules for improved latency.

Signed-off-by: Daniel Trick <daniel.trick@sit.fraunhofer.de>
Comment thread src/util-io/io.c
Comment thread src/util-io/io.c
@moritzbuhl
moritzbuhl merged commit 338f5ae into tpm2-software:master Sep 16, 2026
32 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