]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Track closing of outbound TCP connections
authorMatt Joiner <anacrolix@gmail.com>
Mon, 20 Jun 2016 07:51:40 +0000 (17:51 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 20 Jun 2016 07:51:40 +0000 (17:51 +1000)
Got all inbound and outbound UTP, missed this one I think.

client.go

index bb7c0976c960dc602f395e5de08fa9156b3ff8f1..b83ef33d66993b70c84ebf8f06a9c1358d6eeb04 100644 (file)
--- 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
 }