Node: TCP Fast Open

Created on 11 Aug 2016  路  9Comments  路  Source: nodejs/node

  • Version: 6.3.1
  • Platform: Windows 64 Bit
  • Subsystem: net

Hello,

Is it possible to add TCP Fast Open to the TCP Net Module?

feature request net

Most helpful comment

Folks, it would be great if you could review my PR in libuv, and try to push it through. I have received a zero response on the PR so far.

All 9 comments

It's not completely out of the question but what is your use case for it?

An argument against is that it's only supported by a handful of platforms (and at that only recent versions, Linux 3.7, OS X 10.11 and Windows 10.)

Agreed. It's one of those things that would be certainly nice to have in theory but it's not clear just how extensively it's supported or used in the wild. Having clear use cases would help.

This would be awesome. I have a strong use-case for this where we're sometimes connecting to an API rapidly, but some clients may only infrequently access. For architectural reasons It would be bad for us to maintain a TCP connection. We can use TCP Fast Open to reduce round-trips when re-establishing this connection. (We control client and server, so questions of extensive support is not a problem for us)

FWIW there's a WIP PR in libuv

Folks, it would be great if you could review my PR in libuv, and try to push it through. I have received a zero response on the PR so far.

What do we need to do to add this feature? What are the next steps?

This would be great to have. Platform support is extensive today.

@jasnell This should remove 1RTT from HTTP/2 connections with most modern browsers/devices/OSes. Once OpenSSL1.1.1/TLS1.3 lands we'd finally have 0RTT support for HTTP/2.

shadowsocks, one of the popular proxy tool we use, utilizes TCP fast open to optimize network traffic.

I personally expect this to be implemented.

Would love to see this added, then we can set net.ipv4.tcp_fastopen to 3 in sysctl tuning 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

willnwhite picture willnwhite  路  3Comments

dfahlander picture dfahlander  路  3Comments

akdor1154 picture akdor1154  路  3Comments

fanjunzhi picture fanjunzhi  路  3Comments

seishun picture seishun  路  3Comments