| 1 |
# TCPListen |
| 2 |
|
| 3 |
Package tcplisten provides customizable TCP net.Listener with various |
| 4 |
performance-related options: |
| 5 |
|
| 6 |
* SO_REUSEPORT. This option allows linear scaling server performance |
| 7 |
on multi-CPU servers. |
| 8 |
See https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ for details. |
| 9 |
|
| 10 |
* TCP_DEFER_ACCEPT. This option expects the server reads from the accepted |
| 11 |
connection before writing to them. |
| 12 |
|
| 13 |
* TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details. |
| 14 |
|
| 15 |
The package is derived from [go_reuseport](https://github.com/valyala/tcplisten). |