Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TfoDial ¶
dial tcp with tcp fastopen 第一个包体积不要太大,需要小于一定数量,否则会被吃掉(正确性问题), 如果过大,此处会在连接时发送前一部分,连接后又发送一部分
func TfoLazyDial ¶
dial tcp with tcp fastopen you should use
echo 3 > /proc/sys/net/ipv4/tcp_fastopen to enable it
you should use linux kernel version >3.7 you should write something before read to use this function. network is useless, it always use tcp4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.