From: Matt Joiner Date: Wed, 18 Mar 2015 07:21:00 +0000 (+1100) Subject: Disable AllowedFast X-Git-Tag: v1.0.0~1274 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=fa025bdbee4215272028bc2ddc50d06535e6df77;p=btrtrc.git Disable AllowedFast --- diff --git a/client.go b/client.go index 396205ae..ff335e40 100644 --- a/client.go +++ b/client.go @@ -34,10 +34,13 @@ import ( "os" "path/filepath" "sort" + "strconv" "strings" "syscall" "time" + "github.com/bradfitz/iter" + "bitbucket.org/anacrolix/go.torrent/mse" "bitbucket.org/anacrolix/go.torrent/data" @@ -77,10 +80,12 @@ var ( const ( // Justification for set bits follows. // - // Extension protocol: http://www.bittorrent.org/beps/bep_0010.html - // DHT: http://www.bittorrent.org/beps/bep_0005.html - // Fast Extension: http://bittorrent.org/beps/bep_0006.html ([7]|=4) - defaultExtensionBytes = "\x00\x00\x00\x00\x00\x10\x00\x05" + // Extension protocol: http://www.bittorrent.org/beps/bep_0010.html ([5]|=0x10) + // DHT: http://www.bittorrent.org/beps/bep_0005.html ([7]|=1) + // Fast Extension: + // http://bittorrent.org/beps/bep_0006.html ([7]|=4) + // Disabled until AllowedFast is implemented + defaultExtensionBytes = "\x00\x00\x00\x00\x00\x10\x00\x01" socketsPerTorrent = 40 torrentPeersHighWater = 200