From: Matt Joiner Date: Mon, 20 Jun 2016 07:51:40 +0000 (+1000) Subject: Track closing of outbound TCP connections X-Git-Tag: v1.0.0~676 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6b447c8d2bdd381d259a33b6c85dc0685f125a05;p=btrtrc.git Track closing of outbound TCP connections Got all inbound and outbound UTP, missed this one I think. --- diff --git a/client.go b/client.go index bb7c0976..b83ef33d 100644 --- a/client.go +++ b/client.go @@ -516,6 +516,7 @@ func (cl *Client) dialTCP(addr string, t *Torrent) (c net.Conn, err error) { if err == nil { c.(*net.TCPConn).SetLinger(0) } + c = pproffd.WrapNetConn(c) return }