Registry / networking / roadrunner-server-tcplisten

roadrunner-server-tcplisten

JSON →
library1.5.2gogounverified

Package tcplisten provides customizable TCP net.Listener with performance-related options like SO_REUSEPORT, TCP_DEFER_ACCEPT, and TCP_FASTOPEN.

go get github.com/roadrunner-server/tcplisten
INSTALL
IMPORT
SIG · ROADRUNNER-SERVER-
R
roadrunner-server-tcplisten
networkinggov1.5.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.

tcplisten
github.com/roadrunner-server/tcplisten

Creates a TCP listener with SO_REUSEPORT and other optimizations.

package main import ( "log" "net" "github.com/roadrunner-server/tcplisten" ) func main() { cfg := tcplisten.Config{ ReusePort: true, DeferAccept: true, FastOpen: true, } ln, err := cfg.Listen("tcp", ":8080") if err != nil { log.Fatal(err) } defer ln.Close() log.Println("Listening on :8080") }
Debug
Known issues
gotchaTCP_FASTOPEN and SO_REUSEPORT may not be supported on all operating systems or kernel versions.
fix
Check platform support and handle errors gracefully; fall back to default listener if needed.
affects: all
Upgrade
Version history
1.5.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Amazon
1
OpenAI (training)
1
Resources
roadrunner-server-tcplisten — go get roadrunner-server-tcplisten · libregistry