anatasluo
0238a3d30b
add one downstream project ( #315 )
2019-04-16 09:47:07 +10:00
davtoro
f40140283a
check if peer id exists
2019-04-15 17:58:23 +10:00
Matt Joiner
bc249730aa
Fix segfault on nil conntrack.EntryHandle instance when dialing
...
Fixes https://github.com/anacrolix/torrent/issues/314 . Comments were added to the the conntrack package master, but have no functional change required here.
2019-04-10 18:27:54 +10:00
Matt Joiner
d478888231
When failing to read stored data, try updating only the completion state for the failed piece
...
On rare occasions, reads are failing in a loop, exhausting all the available file descriptors. It's not clear why, it could be an error in the filecache storage backend I'm using, or some logic error regarding when it's okay to try to read.
2019-04-09 12:57:54 +10:00
Matt Joiner
b5a1aabe90
Make the default conntracker instance unlimited for now
...
There are rate limiting issues in the DHT that need to be resolved.
2019-04-09 12:54:41 +10:00
Matt Joiner
70df67555b
Improve some types in reader.readOnceAt
2019-04-09 12:53:18 +10:00
Matt Joiner
485d6bb6e7
Fix leaked conntrack.EntryHandle
2019-03-29 08:48:56 +11:00
Matt Joiner
97e23327dd
Remove gomobile from CI
...
https://github.com/golang/go/issues/27234
2019-03-23 01:34:55 +11:00
Matt Joiner
4813f16614
Fix gomobile install in CI
2019-03-22 23:36:59 +11:00
Matt Joiner
499b2d8725
Fix race condition in Torrent.SetDisplayName
2019-03-20 11:01:56 +11:00
Matt Joiner
4ea8a70a05
vgo get -u
2019-03-19 20:43:51 +11:00
Matt Joiner
67e26dd944
vgo mod tidy
2019-03-19 20:35:06 +11:00
Matt Joiner
8e68d6500b
Add github.com/spaolacci/murmur3 indirect
2019-03-19 19:09:31 +11:00
Matt Joiner
3920c6c325
Fix race in Torrent.String
2019-03-12 11:22:25 +11:00
Matt Joiner
df47e3aaef
Update missinggo and dht
2019-03-11 11:51:29 +11:00
Matt Joiner
20de43a42c
Panic on chunk write errors
...
The torrent client will download indefinitely when this occurs, a strategy to handle or raise the error more appropriately is required.
2019-03-11 10:46:06 +11:00
Matt Joiner
5829c30146
Make use of the new context parameter in conntrack Wait
2019-03-11 10:46:06 +11:00
Matt Joiner
376c669445
Update to missinggo v0.2.0
2019-03-03 14:40:49 +11:00
Matt Joiner
c639cce605
Fix double quoting in a log statement
2019-03-03 14:31:08 +11:00
Matt Joiner
52b3a4e816
Move multiless to missinggo
2019-03-03 14:31:08 +11:00
Masih Yeganeh
72db8ae577
Adds more flags to torrent-create
...
Flags for setting Comment and CreatedBy fields and starting with empty AnnounceList
2019-03-01 11:18:57 +11:00
Matt Joiner
f1e4840959
Avoid allocating a slice when iterating pending chunks
2019-02-19 14:41:52 +11:00
Matt Joiner
2e3281421f
go mod tidy
2019-02-19 14:38:31 +11:00
Matt Joiner
9ea65d672f
Torrent.String: Quote raw names
2019-02-16 18:33:14 +11:00
Matt Joiner
b102ce901a
Reduce allocations for Piece.hash
2019-01-30 17:54:02 +11:00
Matt Joiner
cde8062e75
Report allocs in BenchmarkAddLargeTorrent
2019-01-30 15:19:32 +11:00
Matt Joiner
8afccfaef6
Remove unnecessary blank line
2019-01-30 15:18:00 +11:00
Matt Joiner
1749152065
Reorder some code in dht announcer
2019-01-22 01:41:07 +01:00
Matt Joiner
a65784374b
Fix cancellation of dht announce when peers are wanted
2019-01-22 01:16:41 +01:00
Matt Joiner
d6b2152ecc
go.mod: Require dht with krpc.Msg.Token change
2019-01-21 22:59:13 +01:00
Matt Joiner
69c39f0036
Restart DHT announces at regular intervals
...
The existing implementation would crawl the DHT until the address bloom filter was full. This could take ages unless enough peers were found to fill the pending nodes for the torrent to the high water mark. Fixes #301 .
2019-01-21 22:54:03 +01:00
Matt Joiner
25cd79aa1c
Fix benchmark not building with changes to krpc.Msg.Token
2019-01-21 22:53:42 +01:00
Matt Joiner
ddbba214da
Fix test for dht query context changes
2019-01-21 22:36:40 +01:00
Matt Joiner
7fa29b9e4d
Fix build error
2019-01-16 10:11:47 +00:00
Matt Joiner
ee5a941203
Switch entirely to anacrolix/log
2019-01-15 18:18:30 +00:00
Matt Joiner
5a7c78ce15
Merge branch 'ci'
2019-01-15 17:56:11 +00:00
Matt Joiner
c9f4078224
Cache go master, use existing go for bootstrap, and tighten some cache keys
2019-01-09 19:55:55 +11:00
Matt Joiner
fa4dbacd79
Cache the GOCACHE
...
Go mod doesn't store build artifacts in $GOPATH/pkg anymore.
2019-01-09 12:25:06 +11:00
Matt Joiner
8dc4f1c81f
Cache the entire go pkg folder
2019-01-09 11:23:07 +11:00
Matt Joiner
84132ba242
Time the module downloads
2019-01-09 11:21:49 +11:00
Matt Joiner
beeec3c475
Manually add modules that refuse to be added automatically
2019-01-09 10:47:19 +11:00
Matt Joiner
cd06ab16ac
tracker: Fix network error handling in unit test
2019-01-08 19:21:15 +11:00
Matt Joiner
0047eefef4
tracker: Fix network error handling in unit test
2019-01-08 19:20:53 +11:00
Matt Joiner
885af9d29d
Change the go-mod cache key and path
2019-01-08 18:57:15 +11:00
Matt Joiner
40d1fbc685
Break up compiling go master into different steps
2019-01-08 17:07:11 +11:00
Matt Joiner
26983bb031
Fix yaml formatting
...
What a stupid format.
2019-01-08 16:59:49 +11:00
Matt Joiner
53358d32be
Add pkg/mod caching
2019-01-08 16:57:33 +11:00
Matt Joiner
1105d6582c
Add extra go debug steps
2019-01-08 16:37:40 +11:00
Matt Joiner
3a03725b57
Get deps in a separate step
2019-01-08 16:31:26 +11:00
Matt Joiner
ba9300e27e
cmd/torrent: Add -publicIp flag
2019-01-08 15:47:01 +11:00