From fa025bdbee4215272028bc2ddc50d06535e6df77 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 18 Mar 2015 18:21:00 +1100 Subject: [PATCH] Disable AllowedFast --- client.go | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) 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 -- 2.48.1