Matt Joiner
8323dd9a14
cmd/torrent: Move log setup earlier to avoid race
2020-01-04 16:41:18 +11:00
Matt Joiner
5746877e1d
cmd/torrent: Synchronize stopping
2020-01-04 16:41:02 +11:00
Matt Joiner
01f9fdb921
Upgrade to log v0.5.0
2020-01-03 15:37:08 +11:00
Matt Joiner
bfbed8ab6d
cmd/torrent: Make the addr flag a string
...
This avoids tagflag trying to resolve it, and then passing a bad IP for different listen networks. There's also a patch to tagflag so it doesn't do this anymore.
2020-01-03 14:51:26 +11:00
Matt Joiner
e24a9b343f
cmd/torrent: Add dht flag
2020-01-03 14:51:26 +11:00
Steve Yoon
d34dfa6575
propagate proxy url parsing err
2020-01-02 09:18:14 +10:00
Sick Yoon
32579e72c7
disable listeners if proxy is configured
2020-01-02 09:18:14 +10:00
Matt Joiner
76f1516d3a
Update dht to v2.3.1
...
Fixes a race in bootstrap stats.
2019-12-29 13:00:20 +11:00
Matt Joiner
d4e90519e6
Use new anacrolix/multiless, and incorporate Peer.Trusted into peer prioritization
2019-12-23 14:04:07 +11:00
Matt Joiner
cf85d70a5c
bencode: Rename string_values->stringValues
2019-12-23 13:39:34 +11:00
Matt Joiner
4104880a66
Remove unnecessary locking in Torrent.Piece
2019-12-18 16:49:15 +11:00
Matt Joiner
5f1d937b62
Add connection trust flag, and more tests with small caches
...
Thanks to observations and feedback from @ccampbell.
2019-12-18 13:52:00 +11:00
Matt Joiner
9e1804f52e
Switch back to anacrolix/sync for the Client lock
2019-12-17 20:49:40 +11:00
davtoro
82e1c81a9a
Possibility to change UPnP ID ( #354 )
2019-12-16 13:22:24 +11:00
Matt Joiner
f448f55e88
Coalesce piece state change notifications on client unlock
...
Reported by Craig Campbell <iamcraigcampbell@gmail.com>.
2019-12-13 15:55:56 +11:00
Yates
790ba6af3c
use path.utf8 first for some torrent ( #350 )
2019-12-08 20:35:40 +11:00
D. HT. Yu
6e95274413
fix if statement in `cmd/torrent/main.go` ( #349 )
2019-12-08 20:34:24 +11:00
i96751414
f15aa27e24
Fix bytesLeft for files ( #348 )
...
* Refactor (*File).bytesLeft
* Always use the same piece size
2019-11-30 19:53:35 +11:00
Matt Joiner
61fa4bf51f
Update deps
2019-11-28 12:51:25 +11:00
Matt Joiner
d26b93cff4
Add comments on File.{first,end}PieceIndex
2019-11-28 12:51:25 +11:00
Matt Joiner
e08da0e6e0
Change File.endPieceIndex calculation
...
I think previously it would round-up when it shouldn't.
2019-11-28 12:51:25 +11:00
i96751414
f22acca804
Add BytesCompleted method for files ( #347 )
...
* Add BytesCompleted method for files
* Make sure we check limit pieces correctly
* Remove unnecessary info check
2019-11-26 11:54:26 +11:00
Matt Joiner
da2d174fc9
Include piece index in log message
2019-11-20 20:04:47 +11:00
Anthony Raymond
8638ed1c75
Anthonyraymond export well known ( #346 )
...
* Export HttpResponse from tracker/http.go
* Update http_test.go
2019-11-20 16:31:54 +11:00
Anthony Raymond
ec56d59137
Export Peer function ( #343 )
...
* Export function to be use-able in library
* Update method call
2019-11-15 10:22:59 +11:00
Matt Joiner
a298d295b2
Use latest golang.org/x/time
...
Includes rate.Limiter.SetBurst{,At}.
2019-11-07 08:56:56 +11:00
Matt Joiner
659f7e0371
Include traversal stats in completed bootstrap log message
2019-11-07 08:51:14 +11:00
Matt Joiner
f98ff7507e
Use default connection tracking values
2019-11-04 12:11:26 +11:00
Matt Joiner
83867dbbe9
Move entirely to etcd-io/bbolt
2019-11-04 09:19:07 +11:00
Matt Joiner
d71f2175c4
Moved to anacrolix/stm
2019-11-03 13:04:46 +11:00
Matt Joiner
94dfd312f0
Use stm versions of dht and missinggo, and use anacrolix/stm
2019-11-02 22:41:53 +11:00
Matt Joiner
0aef469a4c
Use missinggo/v2/conntrack
2019-11-02 22:35:57 +11:00
Matt Joiner
289293f3cc
Rename peer source constants
2019-10-17 17:46:35 +11:00
Matt Joiner
93de711d42
Update dht to include interface change to OnAnnouncePeer
2019-10-17 17:46:09 +11:00
Matt Joiner
5af5e10640
In the torrent status, sort trackers by the scheme last
2019-10-15 14:59:23 +11:00
Matt Joiner
e7bd5c2991
Replace github.com/boltdb/bolt with github.com/etcd-io/bbolt
2019-10-12 11:07:49 +11:00
Matt Joiner
e3420e0b60
Don't close shared client piece completion in mmap storage
...
Fixes #335 .
2019-10-11 17:37:22 +11:00
Matt Joiner
cecd83f966
Don't ignore error getting mmap piece completion
2019-10-11 17:36:46 +11:00
Matt Joiner
63993a3dc2
Add a test for issue #335
2019-10-11 17:34:07 +11:00
Matt Joiner
d3ac644ee3
Add release badge
2019-10-11 15:07:22 +11:00
Matt Joiner
5e9f21277a
Fix logging panic in BenchmarkConnectionMainReadLoop
2019-10-04 12:38:46 +10:00
Matt Joiner
4f7eaba788
Update dht to include the logging fixes
2019-10-04 12:32:12 +10:00
Matt Joiner
ff9d845006
Add code for dumping log Msg values to TestingConfig
2019-10-03 19:12:33 +10:00
Matt Joiner
99fea719a6
Add Client.String
2019-10-03 19:11:45 +10:00
Matt Joiner
0fd282019e
Add some logging for connections and metadata requests
2019-10-03 19:09:55 +10:00
Matt Joiner
79e54b9233
Add connection.String
2019-10-01 21:16:18 +10:00
Matt Joiner
2885426e7e
Prefix torrent logger message text
2019-10-01 21:16:02 +10:00
Matt Joiner
8ee6169aeb
Remove unnecessary extra check for metadata extension support
2019-10-01 18:46:10 +10:00
Matt Joiner
f8cb7ef6fa
Call rand.Shuffle instead of rand.Perm
2019-10-01 18:45:36 +10:00
Matt Joiner
5b0c895e09
Add comments
2019-10-01 18:13:55 +10:00