From 30c705f2f8dbf340af8c3227877a0aaaf3bc16f1 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 21 Jun 2019 14:49:21 +1000 Subject: [PATCH] Count client listener accepts --- client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client.go b/client.go index 004ae686..e8dbf0d7 100644 --- a/client.go +++ b/client.go @@ -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() -- 2.48.1