Skip to content
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

Please setsockopt with TCP_FASTOPEN. Thanks. #11

Open
enihcam opened this issue Dec 7, 2018 · 1 comment
Open

Please setsockopt with TCP_FASTOPEN. Thanks. #11

enihcam opened this issue Dec 7, 2018 · 1 comment

Comments

@enihcam
Copy link

enihcam commented Dec 7, 2018

TCP Fast Open (TFO) is an extension to speed up the opening of successive Transmission Control Protocol (TCP) connections between two endpoints. It works by using a TFO cookie (a TCP option), which is a cryptographic cookie stored on the client and set upon the initial connection with the server.[1] When the client later reconnects, it sends the initial SYN packet along with the TFO cookie data to authenticate itself. If successful, the server may start sending data to the client even before the reception of the final ACK packet of the three-way handshake, skipping that way a round-trip delay and lowering the latency in the start of data transmission.

https://tools.ietf.org/html/rfc7413

Here is an example commit:
shadowsocks/shadowsocks-libev@5d0696f

@nihilus
Copy link

nihilus commented Apr 14, 2019

This should only be added if the target supports it, so an ifdef around the setsockopt() call. Pretty straightforward otherwise.

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

No branches or pull requests

2 participants