You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Harshavardhana
50a817e3d3
|
6 years ago | |
---|---|---|
.. | ||
LICENSE | 6 years ago | |
README.md | 6 years ago | |
socket.go | 6 years ago | |
socket_darwin.go | 6 years ago | |
socket_other.go | 6 years ago | |
tcplisten.go | 6 years ago | |
tcplisten_bsd.go | 6 years ago | |
tcplisten_linux.go | 6 years ago |
README.md
Package tcplisten provides customizable TCP net.Listener with various performance-related options:
-
SO_REUSEPORT. This option allows linear scaling server performance on multi-CPU servers. See https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ for details.
-
TCP_DEFER_ACCEPT. This option expects the server reads from the accepted connection before writing to them.
-
TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details.
The package is derived from go_reuseport.