]> Sergey Matveev's repositories - btrtrc.git/blobdiff - test/transfer_test.go
Fix incorrect EOF when decoding some peer protocol message types
[btrtrc.git] / test / transfer_test.go
index a719fcc73f7c4de4d0b946b8f432054881ce8079..683d589b897059c1b76b24491c66bedecdcc7773 100644 (file)
@@ -155,6 +155,11 @@ func testSeedAfterDownloading(t *testing.T, disableUtp bool) {
        cfg.Seed = true
        cfg.DataDir = t.TempDir()
        cfg.DisableUTP = disableUtp
+       // Make sure the leecher-leecher doesn't connect directly to the seeder. This is because I
+       // wanted to see if having the higher chunk-sized leecher-leecher would cause the leecher to
+       // error decoding. However it shouldn't because a client should only be receiving pieces sized
+       // to the chunk size it expects.
+       cfg.DisablePEX = true
        //cfg.Debug = true
        cfg.Logger = log.Default.WithContextText("leecher")
        leecher, err := torrent.NewClient(cfg)