]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Set default webseed host request concurrency to 25
authorMatt Joiner <anacrolix@gmail.com>
Fri, 15 Aug 2025 01:04:48 +0000 (11:04 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Fri, 15 Aug 2025 01:04:48 +0000 (11:04 +1000)
webseed-requesting.go

index 4cc9ccb462802fb30d7bb02df5eba607c859b7a8..81166b5ee9867b955c4d5a6d4577437f43cb7c42 100644 (file)
@@ -25,7 +25,8 @@ import (
        "github.com/anacrolix/torrent/webseed"
 )
 
-var webseedHostRequestConcurrency = initIntFromEnv("TORRENT_WEBSEED_HOST_REQUEST_CONCURRENCY", 10, 0)
+// Default is based on experience with CloudFlare.
+var webseedHostRequestConcurrency = initIntFromEnv("TORRENT_WEBSEED_HOST_REQUEST_CONCURRENCY", 25, 0)
 
 type (
        webseedHostKey       string