Registry / networking / valyala-tcplisten

valyala-tcplisten

JSON →
library1.0.0gogounverified

Package tcplisten provides customizable TCP net.Listener with performance options like SO_REUSEPORT.

go get github.com/valyala/tcplisten
INSTALL
IMPORT
SIG · VALYALA-TCPLISTEN
V
valyala-tcplisten
networkinggov1.0.0
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/valyala/tcplisten

Creates a TCP listener with SO_REUSEPORT enabled.

package main import ( "fmt" "github.com/valyala/tcplisten" ) func main() { ln, err := tcplisten.NewListener("tcp4", ":8080", &tcplisten.Config{ ReusePort: true, }) if err != nil { panic(err) } defer ln.Close() fmt.Println("Listening on :8080") }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Amazon
1
OpenAI (training)
1
Resources
valyala-tcplisten — go get valyala-tcplisten · libregistry