Commit Graph

2125 Commits

Author SHA1 Message Date
Matt Joiner 37fc800cb1 cmd/torrent: Add -stats flag
Requires updated tagflag package.
2018-06-06 00:40:03 +10:00
Matt Joiner 6354b9b967 Ignore CI test failures with CGO_ENABLED=0
It uses anacrolix/utp which isn't stable or recommended. Timeouts and retrying are needed to work around bugs in that package better.
2018-06-06 00:39:30 +10:00
Matt Joiner 4e257ffdcf go.mod additions for CGO_ENABLED=0 2018-05-25 18:53:14 +10:00
Matt Joiner 7cafedac42 Move internal bloom cmds to dht repo 2018-05-25 18:36:59 +10:00
Matt Joiner 93c24e862f Add go.mod file for vgo 2018-05-25 16:22:54 +10:00
Matt Joiner a1fabaf2f8 Improve Torrent.DownloadPieces documentation
Was mentioned in Gitter.
2018-05-18 14:06:28 +10:00
Matt Joiner 15b828515e Don't listen on IPv6 if DisableIPv6 is set
Fixes #250
2018-05-02 19:24:46 +10:00
Matt Joiner 52896818db Remove vestigial comment 2018-05-02 19:23:05 +10:00
Matt Joiner 39ccb14036 Update TODO file 2018-04-14 21:44:50 +10:00
Matt Joiner df38775630 A few adjustments to prioritized peers usage 2018-04-14 21:44:41 +10:00
Matt Joiner cefcda18c6 Add tests for prioritizedPeers 2018-04-14 21:44:03 +10:00
Matt Joiner 610dbd17ba Fix #244 2018-04-14 21:43:08 +10:00
Matt Joiner 5c81c6c70a Include connection network in log message 2018-04-14 11:24:06 +10:00
Matt Joiner e04b6f0ba0 Try to make test more reliable 2018-04-14 11:23:26 +10:00
Matt Joiner d7225aed03 Fix #247 2018-04-13 17:07:19 +10:00
Matt Joiner e9386d1016 Fix #246 2018-04-12 23:34:31 +10:00
Matt Joiner 0290a1610a Merge branch 'circleci'
# Conflicts:
#	client.go
2018-04-12 17:28:13 +10:00
Matt Joiner e38216a472 Add comment 2018-04-12 16:12:27 +10:00
Matt Joiner ed75065f76 Reinstate Uploaded and Downloaded values in tracker announces
Fixes followup comment in #71.
2018-04-12 16:12:14 +10:00
Matt Joiner 485d8cdf61 Use new DHT stats fields 2018-04-12 16:11:22 +10:00
Matt Joiner dfb15da131 Another use of LoopbackListenhost 2018-04-12 16:10:46 +10:00
Matt Joiner 83e4c65fc4 Add LoopbackListenHost 2018-04-12 15:21:31 +10:00
Matt Joiner 9928914ecd Add some peer source comments 2018-04-12 15:12:29 +10:00
Matt Joiner 8a8fe378d4 Improve DHT status output 2018-04-12 15:12:15 +10:00
Matt Joiner b5df073217 Support different hosts for each network
CircleCI's localhost hostname doesn't resolve for IPv6.
2018-04-12 15:06:53 +10:00
Matt Joiner 319e57d1c6 Rework conns to/and allow multiple DHT servers
This will help with #229, and IPv6 support.
2018-04-12 11:41:07 +10:00
Matt Joiner a101ebb07e package assert->expect 2018-04-12 11:34:24 +10:00
Matt Joiner 92f6209c5f Prioritize pending nodes with BEP 40 2018-04-04 17:59:28 +10:00
Matt Joiner d950677f67 Expose public IPv4 and IPv6 config options and use them with trackers 2018-03-29 14:29:15 +11:00
Matt Joiner 76002b87f1 Start implementing BEP 40 2018-03-29 14:27:48 +11:00
Matt Joiner ed80150f08 github.com/go-fsnotify/fsnotify -> github.com/fsnotify/fsnotify 2018-03-27 17:31:52 +11:00
Matt Joiner 41b66adad7 tracker: Set UDP IPAddress field in announces 2018-02-21 13:33:12 +11:00
Matt Joiner 5a7c4fc135 cmd/torrent: Add packed-blocklist flag 2018-02-19 16:20:31 +11:00
Matt Joiner 7a7f468d9d cmd/tracker-announce: Rework to be faster and support UDP IPv6 2018-02-19 16:20:08 +11:00
Matt Joiner 8f7408b1f9 IPv6 tracker support 2018-02-19 16:19:18 +11:00
Matt Joiner 9513270c06 Trackers shown are just the enabled ones 2018-02-17 11:13:48 +11:00
Matt Joiner aab77ab05d Adjust some config defaults 2018-02-16 12:15:56 +11:00
Matt Joiner 377cb62da9 Make half-open connection limit more dynamic 2018-02-16 12:15:07 +11:00
Matt Joiner 646622b8f1 Move clamp and max, and add min to misc.go 2018-02-16 12:14:15 +11:00
Matt Joiner dbb2936cdf TODO 2018-02-16 11:03:21 +11:00
Matt Joiner fc03dcb859 Set the connection.cryptoMethod
It was unwittingly dropped from received connections, and may never have been set for initiated connections.
2018-02-16 10:59:56 +11:00
Matt Joiner b92e8b7814 Add support for disabling IPv4 and IPv4 peers 2018-02-16 10:46:11 +11:00
Matt Joiner 066cdd520b Add mse.CryptoMethod type 2018-02-16 10:36:29 +11:00
Matt Joiner 3f7eab00de Change some connection flag strings to avoid collision 2018-02-15 16:04:42 +11:00
Matt Joiner 0aad14afd1 Add a check for a strange panic in production 2018-02-15 16:03:44 +11:00
Matt Joiner 35b224ba36 Add extra pedantic checks to requesting to try and flush out @deranjer's panics 2018-02-15 15:21:51 +11:00
Matt Joiner d69cfbc419 Track IPv6 peers received over PEX and simplify the adding code 2018-02-15 14:43:57 +11:00
Matt Joiner d6f6359799 Remove errant log message 2018-02-14 01:14:05 +11:00
Matt Joiner 0af2aaf85f Add a bunch of TODOs 2018-02-13 11:18:23 +11:00
Matt Joiner 7dec0a196d Count errors returned from connection.mainReadLoop 2018-02-13 00:56:21 +11:00