Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
connect: add support for new TCP Fast Open API on Linux #2056
The new API added in Linux 4.11 only requires setting a socket option
Notably, this makes it possible to use TFO with SSL connections on Linux
@jay : test230 is from commit dbcced8#diff-c3eb2d696b714d609a3f191d0b60bf94. It checks multiple content encoding. I already had the same problem once while developing this feature, but resubmitting the job was al right. I have tried to make it fail locally (outside travis) without success. I've just found a problem with data length (that can be random) and fixed it. Next travis runs will show if the error occurs again.
The new API added in Linux 4.11 only requires setting a socket option before connecting, without the whole sento() machinery. Notably, this makes it possible to use TFO with SSL connections on Linux as well, without the need to mess around with OpenSSL (or whatever other SSL library) internals.
Btw, you can use https://www.ghedini.me to test this, e.g. using tcpdump on the first curl run I see:
and then running curl again (once we have received and cached the TFO cookie from the previous connection):