how about support tcp fast open on golang?

459 views
Skip to first unread message

dlin

unread,
May 7, 2013, 9:50:49 PM5/7/13
to golan...@googlegroups.com
According this article http://lwn.net/Articles/458610/  in "tcp fast open" section:

client side: sendto( ,MSG_FASTOPEN, ..) // ref: bits/socket.h
server side: setsockopt( TCP_FASTOPEN) // ref: linux/tcp.h netinet/tcp.h

Will golang support tcp fast open natively on linux platform?

Or, what are possible solutions to use tcp fast open if I want my Go web server(net.http) use it?




Mikio Hara

unread,
May 8, 2013, 7:23:33 AM5/8/13
to dlin, golang-nuts
> Will golang support tcp fast open natively on linux platform?

golang.org/issue/4842

bronze man

unread,
Jan 15, 2015, 10:11:53 AM1/15/15
to golan...@googlegroups.com
I have implemented this stuff myself in golang.
It only works on linux.

Use TfoLazyDial to dial .
use TfoListen to listen on.
You need echo 3 > /proc/sys/net/ipv4/tcp_fastopen to enable this functional in your linux box.
Reply all
Reply to author
Forward
0 new messages