go_reuseport:将SO_REUSEPORT带入您的Go服务器 源码
GO_REUSEPORT GO_REUSEPORT有点expirement创建net.Listener支持套接字选项。 目前,支持Darwin和Linux(3.9版以上)系统。 如果您要测试其他系统并将结果告诉我,我将很高兴。 上的 。 例 package main import ( "fmt" "html" "net/http" "os" "runtime" "github.com/kavu/go_reuseport" ) func main () { listener , err := reuseport . Listen ( "tcp" , "localh
下载地址
用户评论