]> Sergey Matveev's repositories - btrtrc.git/blobdiff - global.go
Prepare to allow max conns per torrent to be configured
[btrtrc.git] / global.go
index f938baa282d6fa87f39381446e805f28be8b31ad..0d2411283568081ead4d4e04ecba14f83691c696 100644 (file)
--- a/global.go
+++ b/global.go
@@ -36,9 +36,10 @@ const (
        // http://www.bittorrent.org/beps/bep_0005.html
        defaultExtensionBytes = "\x00\x00\x00\x00\x00\x10\x00\x01"
 
-       socketsPerTorrent     = 80
-       torrentPeersHighWater = 200
-       torrentPeersLowWater  = 50
+       defaultEstablishedConnsPerTorrent = 80
+       defaultHalfOpenConnsPerTorrent    = 80
+       torrentPeersHighWater             = 200
+       torrentPeersLowWater              = 50
 
        // Limit how long handshake can take. This is to reduce the lingering
        // impact of a few bad apples. 4s loses 1% of successful handshakes that