Count client listener accepts

This commit is contained in:
Matt Joiner 2019-06-21 14:49:21 +10:00
parent 88b3f92e0b
commit 30c705f2f8
1 changed files with 1 additions and 0 deletions

View File

@ -419,6 +419,7 @@ func (cl *Client) rejectAccepted(conn net.Conn) bool {
func (cl *Client) acceptConnections(l net.Listener) {
for {
conn, err := l.Accept()
torrent.Add("client listener accepts", 1)
conn = pproffd.WrapNetConn(conn)
cl.rLock()
closed := cl.closed.IsSet()