]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Disable AllowedFast
authorMatt Joiner <anacrolix@gmail.com>
Wed, 18 Mar 2015 07:21:00 +0000 (18:21 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 18 Mar 2015 07:21:00 +0000 (18:21 +1100)
client.go

index 396205ae262759f5615d471ac3730ccb2bfd3691..ff335e40714fe31642087a7d5848efbb7111d434 100644 (file)
--- 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