Registry / networking / database64128-tfo-go

database64128-tfo-go

JSON →
library1.1.2gogounverified

Package tfo provides drop-in wrappers around Go's net package to enable TCP Fast Open on Linux, Windows, macOS, and FreeBSD.

go get github.com/database64128/tfo-go
INSTALL
IMPORT
SIG · DATABASE64128-TFO-
D
database64128-tfo-go
networkinggov1.1.2
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/database64128/tfo-go

Creates a TCP listener with TCP Fast Open enabled.

package main import ( "fmt" "github.com/database64128/tfo-go" ) func main() { ln, err := tfo.Listen("tcp", ":8080") if err != nil { fmt.Println(err) return } defer ln.Close() fmt.Println("Listening with TFO enabled") }
Debug
Known issues
gotchaOn Windows, all TFO operations block the current goroutine thread, which may impact concurrency.
fix
Avoid using Windows for high-concurrency applications, or limit the number of connections.
affects: >=1.0.0
gotchaFreeBSD support is untested and may have issues.
fix
Test thoroughly on FreeBSD before production use.
affects: >=1.0.0
Upgrade
Version history
1.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
database64128-tfo-go — go get database64128-tfo-go · libregistry