Commit Graph

1849 Commits

Author SHA1 Message Date
Matt Joiner da4a6503c2 Fix race condition in Client.ListenAddrs 2018-06-13 10:53:38 +10:00
Matt Joiner 90f84bda71 Allow adding duplicate connections
I believe this fixes a long-standing race condition when dropping connections to the same peer ID where Clients assume the peer has added connections in the same order. Further commits may address duplicate connections further.
2018-06-13 10:53:11 +10:00
Matt Joiner 5412eef6da Fix Count usage in benchmark 2018-06-12 22:47:46 +10:00
Matt Joiner 5cb73d6a37 Ensure ConnStats spew nicely 2018-06-12 22:40:04 +10:00
Matt Joiner 224522545b Fix build error with recent go version 2018-06-12 21:51:34 +10:00
Matt Joiner 22a939fb02 Remove unused log import 2018-06-12 20:25:32 +10:00
Matt Joiner 817344d630 Remove duplicateClientConns expvar 2018-06-12 20:23:26 +10:00
Matt Joiner 856d5083b5 Update log call 2018-06-12 20:22:54 +10:00
Matt Joiner 360e1dbdd1 Track ConnStats with atomics 2018-06-12 20:21:53 +10:00
Matt Joiner 2007f2c234 Make download cancellable tests more reliable 2018-06-12 20:19:53 +10:00
Matt Joiner a287d069a4 Fix crash adding peers when Torrent is closed 2018-06-12 20:17:15 +10:00
Matt Joiner b024e1cff6 Remove unnecessary use of go keyword 2018-06-12 20:16:17 +10:00
Matt Joiner cea5584d6b Track outgoing through a new field on connection, and rework duplicate connection preferencing 2018-06-12 20:14:00 +10:00
Matt Joiner e9040f8f74 Fix failure in CI on non-critical test due to set -e 2018-06-11 12:44:12 +10:00
Matt Joiner ab48d4731c Include rate limiting and stats in BenchmarkConnectionMainReadLoop 2018-06-11 12:20:51 +10:00
Matt Joiner add2fceaba Merge commit 'cadbacb956fa38a61f3656dc08d71bd68fc966ec' into dev 2018-06-11 11:34:38 +10:00
Matt Joiner cadbacb956
Merge pull request #258 from porjo/master
Fix file permissions
2018-06-11 00:00:25 +10:00
Matt Joiner 5a53d29c75 Minimize lock time in Client.acceptConnections 2018-06-10 10:29:19 +10:00
Matt Joiner ac6ba9f021 Add ConnStats at Client level
ConnStats management is refactored to make this less tedious.
2018-06-10 09:20:33 +10:00
Matt Joiner 415c6f6654 Increment conn read/write stats asynchronously
Acquiring the lock appears to be quite intensive.
2018-06-10 09:20:33 +10:00
Matt Joiner a9bdb438dc Fix timing failures in download cancel tests 2018-06-10 09:20:33 +10:00
Matt Joiner 3d680f8afc Update a link 2018-06-10 09:20:33 +10:00
Ian Bishop ffd41230a6 Fix file permissions 2018-06-09 15:11:28 +02:00
Denis f6ed514c3b added proxy support to the library, using ProxyURL parameter. (#256) 2018-06-08 20:52:36 +10:00
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