• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

c-ares / c-ares / 10180203493
92%

Build:
DEFAULT BRANCH: main
Ran 31 Jul 2024 12:31PM UTC
Jobs 1
Files 168
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Jul 2024 12:28PM UTC coverage: 91.75% (-0.05%) from 91.798%
10180203493

push

github

web-flow
Implement TCP FastOpen (TFO) RFC7413 (#840)

TCP Fast Open (TFO) allows TCP connection establishment in 0-RTT when a
client and server have previously communicated. The SYN packet will also
contain the initial data packet from the client to the server. This
means there should be virtually no slowdown over UDP when both sides
support TCP FastOpen, which is unfortunately not always the case. For
instance, `1.1.1.1` appears to support TFO, however `8.8.8.8` does not.

This implementation supports Linux, Android, FreeBSD, MacOS, and iOS.
While Windows does have support for TCP FastOpen it does so via
completion APIs only, and that can't be used with polling APIs like used
by every other OS. We could implement it in the future if desired for
those using `ARES_OPT_EVENT_THREAD`, but it would probably require
adopting IOCP completely on Windows.

Sysctls are required to be set appropriately:
 - Linux: `net.ipv4.tcp_fastopen`:
   - `1` = client only (typically default)
   - `2` = server only
   - `3` = client and server
 - MacOS: `net.inet.tcp.fastopen`
   - `1` = client only
   - `2` = server only
   - `3` = client and server (typically default)
- FreeBSD: `net.inet.tcp.fastopen.server_enable` (boolean) and
`net.inet.tcp.fastopen.client_enable` (boolean)

This feature is always-on, when running on an OS with the capability
enabled. Though some middleboxes have impacted end-to-end TFO and caused
connectivity errors, all modern OSs perform automatic blackholing of IPs
that have issues with TFO. It is not expected this to cause any issues
in the modern day implementations.

This will also help with improving latency for future DoT and DoH
implementations.

Authored-By: Brad House (@bradh352)

144 of 175 new or added lines in 7 files covered. (82.29%)

4 existing lines in 2 files now uncovered.

19751 of 21527 relevant lines covered (91.75%)

101613.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10180203493.1 31 Jul 2024 12:31PM UTC 0
57.76
GitHub Action Run
Source Files on build 10180203493
Detailed source file information is not available for this build.
  • Back to Repo
  • dc423fb8 on github
  • Prev Build on main (#10151942998)
  • Next Build on main (#10180271523)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc