Commit Graph

101 Commits

Author SHA1 Message Date
Matt Joiner ddddc63924 Expose PeerConn.PeerPieces
Fixes #375.
2020-02-21 11:51:24 +11:00
Matt Joiner d24922dc09 Add support for non-IP-based networks
Includes a test with unix sockets. Exposes AddDialer, AddListener, and reworks Peer.
2020-02-20 16:47:37 +11:00
Matt Joiner 0d4858ba29 Extract the transfer tests
We need them external the torrent package so we can test the API for adding dialers and listeners.
2020-02-20 13:57:24 +11:00
Matt Joiner 737596d3df go get -u && go mod tidy 2020-01-23 14:16:46 +11:00
Matt Joiner ff8ce944e9 Upgrade github.com/pkg/errors@v0.9.0 2020-01-14 15:42:27 +11:00
Matt Joiner 2559af0f9c Extract the request timeout stuff into requestStrategyThree 2020-01-14 10:51:09 +11:00
Matt Joiner 31fdcb3463 Update missinggo 2020-01-14 10:51:09 +11:00
Matt Joiner 6cc65683e5 Revert to log v0.4.0 2020-01-04 16:43:15 +11:00
Matt Joiner 01f9fdb921 Upgrade to log v0.5.0 2020-01-03 15:37:08 +11: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 61fa4bf51f Update deps 2019-11-28 12:51:25 +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 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 93de711d42 Update dht to include interface change to OnAnnouncePeer 2019-10-17 17:46:09 +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 4f7eaba788 Update dht to include the logging fixes 2019-10-04 12:32:12 +10:00
Matt Joiner 2885426e7e Prefix torrent logger message text 2019-10-01 21:16:02 +10:00
Matt Joiner 6c8c4a6518 Pass logger to DHTs 2019-09-13 08:46:30 +10:00
Matt Joiner eb4dad73ae Lots of improvements to logging 2019-08-22 13:59:04 +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 fb8c549e9d Add mse/cmd/mse 2019-08-18 16:52:00 +10:00
Matt Joiner 03bac6e6b7 go mod tidy 2019-08-15 10:21:00 +10:00
Matt Joiner 9224303c1e Update all imports of dht to v2 2019-08-10 18:46:07 +10:00
Matt Joiner 338287486f Always return errors when handshakes or dialing fails
I intend to use xerrors-style error handling for special cases.
2019-07-19 16:15:46 +10:00
Matt Joiner b17f0119fd Use fork of elgatito/upnp that contains go module files
Avoids persistent `go: finding github.com/op/go-logging latest` when using vgo.
2019-07-17 18:03:56 +10:00
Matt Joiner 77074b772a Use tagged github.com/gosuri/uiprogress, and update uilive indirect dep
Messing with the combined progress bar and logging output in cmd/torrent and hoping it is improved.
2019-07-17 18:00:40 +10:00
Matt Joiner e56ea362d9 vgo get -u && go mod tidy 2019-07-16 11:08:17 +10:00
Matt Joiner 88b3f92e0b Add go 1.13 to go.mod 2019-06-21 14:49:01 +10:00
Matt Joiner 4ea8a70a05 vgo get -u 2019-03-19 20:43:51 +11:00
Matt Joiner 8e68d6500b Add github.com/spaolacci/murmur3 indirect 2019-03-19 19:09:31 +11:00
Matt Joiner df47e3aaef Update missinggo and dht 2019-03-11 11:51:29 +11:00
Matt Joiner 376c669445 Update to missinggo v0.2.0 2019-03-03 14:40:49 +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 d6b2152ecc go.mod: Require dht with krpc.Msg.Token change 2019-01-21 22:59:13 +01:00
Matt Joiner ee5a941203 Switch entirely to anacrolix/log 2019-01-15 18:18:30 +00:00
Matt Joiner beeec3c475 Manually add modules that refuse to be added automatically 2019-01-09 10:47:19 +11:00
Matt Joiner 227c6251ee Update go mod turds 2019-01-08 15:45:25 +11:00
Matt Joiner f8d827e7d6 Update go module files 2018-11-28 10:32:53 +11:00
Matt Joiner 35642c832b Update go module files 2018-11-21 17:25:09 +11:00
Matt Joiner 58d9718ea8 Update go module files 2018-11-21 17:04:27 +11:00
Matt Joiner 41a9344a58 Update missinggo dep 2018-11-19 21:03:33 +11:00
Matt Joiner e76f7fe571 Replace glycerine/goconvey with smartystreets/goconvey
It went missing, and some dependency wants it.
2018-07-30 12:43:51 +10:00
Matt Joiner e8a4a52e00 Update go.mod 2018-07-25 18:27:43 +10:00
Matt Joiner 4e257ffdcf go.mod additions for CGO_ENABLED=0 2018-05-25 18:53:14 +10:00
Matt Joiner 93c24e862f Add go.mod file for vgo 2018-05-25 16:22:54 +10:00