Registry / networking / sagernet-tfo-go

sagernet-tfo-go

JSON →
library0.0.0-20231209031829-7b5343ac1dc6gogounverified

Provides TCP Fast Open support for the net dialer and listener on Linux, Windows, macOS, and FreeBSD.

go get github.com/sagernet/tfo-go
INSTALL
IMPORT
SIG · SAGERNET-TFO-GO
S
sagernet-tfo-go
networkinggov0.0.0-20231209031829-7b5343ac1dc6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tfo
github.com/sagernet/tfo-go

Dial a TCP connection with data in the SYN packet using TCP Fast Open.

conn, err := tfo.Dial("tcp", "example.com:80", []byte("GET / HTTP/1.0\r\n\r\n")) if err != nil { panic(err) } defer conn.Close()
Debug
Known issues
gotchaFreeBSD support is untested and may have issues.
fix
Test thoroughly on FreeBSD before production use.
affects: all
Upgrade
Version history
0.0.0-20231209031829-7b5343ac1dc6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
sagernet-tfo-go — go get sagernet-tfo-go · libregistry