modulepackage
0.0.0-20241006021335-daedaf0ca7aa
Repository: https://github.com/metacubex/tfo-go.git
Documentation: pkg.go.dev
# README
tfo-go
tfo-go
provides TCP Fast Open support for the net
dialer and listener.
go get github.com/metacubex/tfo-go
License
# Functions
Dial is like [net.Dial] but enables TFO whenever possible.
DialTCP is like [net.DialTCP] but enables TFO whenever possible.
DialTimeout is like [net.DialTimeout] but enables TFO whenever possible.
Listen is like [net.Listen] but enables TFO whenever possible.
ListenContext is like [net.ListenContext] but enables TFO whenever possible.
ListenTCP is like [net.ListenTCP] but enables TFO whenever possible.
SetTFODialer enables TCP Fast Open on the dialer.
SetTFOListener enables TCP Fast Open on the listener.
SetTFOListenerWithBacklog enables TCP Fast Open on the listener with the given backlog.
# Constants
TCPFastopenQueueLength is the maximum number of total pending TFO connection requests, see https://datatracker.ietf.org/doc/html/rfc7413#section-5.1 for why this limit exists.
# Variables
No description provided by the author
No description provided by the author
# Structs
Dialer wraps [net.Dialer] with an additional option that allows you to disable TFO.
ListenConfig wraps [net.ListenConfig] with TFO-related options.
PlatformUnsupportedError is returned when tfo-go does not support TCP Fast Open on the current platform.