Skip to content

tcp: Add TCP_FASTOPEN_CONNECT sockopt #1731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

j47996
Copy link

@j47996 j47996 commented Jun 20, 2025

This option causes a subsequent connect syscall to only bind the
remote address, leaving the TCP connection initiation for a later
data-send call. This supports applications where the transport
connect coding is a long way away from the data-send (eg. the
latter is in a TLS library) and the wish is for data-bearing
TCP Fast Open.

The option name matches that used by the Linux kernel.

For discussion:

  • The implementation also does the equivalent of a TCP_FASTOPEN
    setsockopt; is this wanted or should they be separated?
    It does not support the PSK mode of TCP_FASTOPEN; is that wanted?
  • The implementation diverges the "connected" socket state from
    the actual state of the TCP connection; is this acceptable
    architecturally?
  • Testing: only kernel bootabilty and feature-exercise testing has
    been done. Is there a networking testsuite?

Signed-off-by: Jeremy Harris <jgh@exim.org>
@j47996 j47996 closed this Jun 20, 2025
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