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
Matt Joiner
efc1195ba2
Sort inbound messages cases by wire value
2019-10-01 18:13:16 +10:00
Matt Joiner
ea4be5cecb
mse: Fix race in BenchmarkStreamRC4
2019-10-01 18:11:44 +10:00
Matt Joiner
ca20deeff6
CI: Run bench tests with race detector
2019-10-01 18:10:00 +10:00
Matt Joiner
a05524d1a2
Switch CI to go1.13
2019-09-24 16:50:17 +10:00
Matt Joiner
f0843c30d0
Add comments to metainfo.Magnet fields
2019-09-24 16:29:29 +10:00
Matt Joiner
584cdbdc60
metainfo.Magnet.String: Always put xt first again, and with specific encoding
2019-09-24 16:29:17 +10:00
Matt Joiner
81ba0df9ed
metainfo: Add Magnet.Params for more open handling
...
Addresses #310 .
2019-09-24 15:52:18 +10:00
Matt Joiner
739fb68095
Update the magnet tests
...
These must have been very old, the style is appalling.
2019-09-24 15:51:08 +10:00
Matt Joiner
16a03ed4d4
Tidy up UPnP logging
2019-09-13 11:55:02 +10:00
Matt Joiner
1a4eb45d4d
go mod tidy
2019-09-13 10:48:55 +10:00
Matt Joiner
6c8c4a6518
Pass logger to DHTs
2019-09-13 08:46:30 +10:00
Matt Joiner
95a521bad6
Fix a crash when receiving a request when we don't yet have the torrent info
2019-08-23 12:19:28 +10:00
Matt Joiner
00efae11ee
Reduce tracker retry for failed announces to 1 minute
2019-08-22 13:59:26 +10:00
Matt Joiner
eb4dad73ae
Lots of improvements to logging
2019-08-22 13:59:04 +10:00
Matt Joiner
2a5488f723
Add missing debug level to log statement
2019-08-22 10:20:13 +10:00
Matt Joiner
4850ce6ab3
Restrict the number of concurrent piece hashes
...
This fixes bad behaviour where running out of file descriptors, and overloading the system with goroutines and concurrent I/O may cause newly started torrents to fail to hash data.
2019-08-22 10:17:06 +10:00
Matt Joiner
ee5e459ea3
Tidy up piece completion change handling
2019-08-21 21:06:39 +10:00
Matt Joiner
14fbacd024
Include the piece number when logging piece hash errors
2019-08-21 21:00:47 +10:00
Matt Joiner
cb1bf0f413
goimports -local
2019-08-21 20:58:40 +10:00
Matt Joiner
f61f14dae0
Make Reader log through its parent
2019-08-21 20:55:43 +10:00
Matt Joiner
5a2c1c9b76
Upgrade to simplified logger
2019-08-21 20:44:12 +10:00
Matt Joiner
dfcb852487
gofmt simplify
2019-08-19 12:15:54 +10:00
Matt Joiner
fb8c549e9d
Add mse/cmd/mse
2019-08-18 16:52:00 +10:00
Matt Joiner
f16bea62a1
metainfo: Add fuzzing func
2019-08-18 16:51:20 +10:00
Matt Joiner
03bac6e6b7
go mod tidy
2019-08-15 10:21:00 +10:00
Matt Joiner
e3e4a11b16
Add some timing code to Client.dialFirst
2019-08-15 10:17:39 +10:00
Matt Joiner
6013f09f8a
Don't include the handshake in the dial timeout for outgoing connections
2019-08-11 13:17:47 +10:00
Matt Joiner
9224303c1e
Update all imports of dht to v2
2019-08-10 18:46:07 +10:00
Matt Joiner
5f0b040f25
Include remote address when logging failure to establish outbound connection
2019-07-30 17:26:12 +10:00