mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-24 17:35:53 +03:00
@@ -1693,6 +1693,14 @@ func (c *HostClient) decConnsCount() {
|
||||
|
||||
}
|
||||
|
||||
// ConnsCount returns connection count of HostClient
|
||||
func (c *HostClient) ConnsCount() int {
|
||||
c.connsLock.Lock()
|
||||
defer c.connsLock.Unlock()
|
||||
|
||||
return c.connsCount
|
||||
}
|
||||
|
||||
func acquireClientConn(conn net.Conn) *clientConn {
|
||||
v := clientConnPool.Get()
|
||||
if v == nil {
|
||||
|
||||
Reference in New Issue
Block a user