Allenxuxu / gev

🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.
MIT License
1.73k stars 194 forks source link

对于gev的一些疑问 #127

Closed cexll closed 2 years ago

cexll commented 2 years ago

运行gev为什么需要先运行一个http服务呢?

func main() {
    go func() {
        if err := http.ListenAndServe(":6060", nil); err != nil {
            panic(err)
        }
    }()
}

启动gev之后1883端口为什么无法连接 image

image

希望大佬解答

Allenxuxu commented 2 years ago

_ "net/http/pprof"

开 pprof