]> Sergey Matveev's repositories - btrtrc.git/blobdiff - client-stats.go
Drop peer request alloc reservations when peer is closed
[btrtrc.git] / client-stats.go
index d799bae6bb86f12816d923c7e11809b8d72f1e90..3513f8f1c250c98ffff3c0a4b33b0af5be8f737a 100644 (file)
@@ -7,4 +7,11 @@ type ClientStats struct {
        // to hole-punch connect requests. The total may not match the sum of attempts for all Torrents
        // if a Torrent is dropped while there are outstanding dials.
        ActiveHalfOpenAttempts int
+
+       // Number of unique peer addresses that were dialed after receiving a holepunch connect message,
+       // that have previously been undialable without any hole-punching attempts.
+       NumPeersUndialableWithoutHolepunchDialedAfterHolepunchConnect int
+       // Number of unique peer addresses that were successfully dialed and connected after a holepunch
+       // connect message and previously failing to connect without holepunching.
+       NumPeersDialableOnlyAfterHolepunch int
 }