Count client listener accepts
This commit is contained in:
parent
88b3f92e0b
commit
30c705f2f8
|
@ -419,6 +419,7 @@ func (cl *Client) rejectAccepted(conn net.Conn) bool {
|
||||||
func (cl *Client) acceptConnections(l net.Listener) {
|
func (cl *Client) acceptConnections(l net.Listener) {
|
||||||
for {
|
for {
|
||||||
conn, err := l.Accept()
|
conn, err := l.Accept()
|
||||||
|
torrent.Add("client listener accepts", 1)
|
||||||
conn = pproffd.WrapNetConn(conn)
|
conn = pproffd.WrapNetConn(conn)
|
||||||
cl.rLock()
|
cl.rLock()
|
||||||
closed := cl.closed.IsSet()
|
closed := cl.closed.IsSet()
|
||||||
|
|
Loading…
Reference in New Issue