> Does anyone know a way of getting current open connections?
You might consider using https://golang.org/pkg/net/http/#Server.ConnState
for this instead of a middleware for the http.Handler. The different
connection states are documented on
https://golang.org/pkg/net/http/#ConnState and the
what does it means "heavy load"? if not in "heavy load", it can work ? On
the other hand, do you want the tcp connections or the http req numbers?
>From the go package, it appears that getting the basic tcp connections in
http.server is impossible.
在 2019年2月12日星期二