mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-15 16:07:51 +03:00
Added a comment to (*Server).GetCurrentConcurrency()
This commit is contained in:
committed by
Erik Dubbelboer
parent
5684318399
commit
6b0a1c55ef
@@ -1716,6 +1716,10 @@ func (s *Server) ServeConn(c net.Conn) error {
|
||||
|
||||
var errHijacked = errors.New("connection has been hijacked")
|
||||
|
||||
// GetCurrentConcurrency returns a number of currently served
|
||||
// connections.
|
||||
//
|
||||
// This function is intended be used by monitoring systems
|
||||
func (s *Server) GetCurrentConcurrency() uint32 {
|
||||
return atomic.LoadUint32(&s.concurrency)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user