2
0
mirror of synced 2025-02-23 22:28:11 +00:00

182 Commits

Author SHA1 Message Date
Matt Joiner
8f7408b1f9 IPv6 tracker support 2018-02-19 16:19:18 +11:00
Matt Joiner
b92e8b7814 Add support for disabling IPv4 and IPv4 peers 2018-02-16 10:46:11 +11:00
Matt Joiner
6773fa9a7e Fix TestSetMaxEstablishedConn and allow it to be run with -count > 1
Similar changes should occur to other tests exporting StatusWriters.
2018-02-11 15:14:31 +11:00
Matt Joiner
5a4e8cd4c5 Rename and rearrange some conn stats 2018-02-03 00:41:13 +11:00
Matt Joiner
45aff24188 TestClientTransferRateLimitedUpload: Export client status 2018-02-01 14:43:57 +11:00
Matt Joiner
50c1cdb601 Some test tidying and improvements 2018-01-29 18:22:21 +11:00
Matt Joiner
77806c1f49 More development of the new logging interface 2018-01-29 18:22:21 +11:00
Matt Joiner
53e32ca9dd Start using new log package 2018-01-28 16:07:11 +11:00
Matt Joiner
37272a391b Avoid race in test 2018-01-27 14:31:46 +11:00
Matt Joiner
51b3374015 Add very tentative UPnP NAT traversal
Relates to #230
2018-01-25 13:14:20 +11:00
Matt Joiner
89ea4c0e29 Fix mentions of TorrentDataOpener 2018-01-11 17:11:54 +11:00
Matt Joiner
659be3d366 Add some TODOs and tidy a test 2018-01-09 17:26:46 +11:00
Matt Joiner
47622fad36 Fix the Stats panic in #214 2017-12-02 09:58:08 +11:00
themihai
6ab65a49a8 feat(config): Allows the torrent client to customise the client identity and connection config 2017-11-07 20:14:13 +02:00
Matt Joiner
9757f04cf8 Apply megacheck to torrent package 2017-11-07 16:11:59 +11:00
Matt Joiner
be3f32e962 Fix a lot of noisy logging and test warnings 2017-11-07 16:00:08 +11:00
Matt Joiner
dd083a4e11 Track completion known to implementation state
Addresses #193
2017-10-12 16:09:32 +11:00
Matt Joiner
083d2120f3 Avoid race condition in test 2017-10-12 16:06:14 +11:00
Matt Joiner
cfa54ead7c Use badStorage for TestPeerInvalidHave 2017-09-18 12:15:14 +10:00
Matt Joiner
07679c3895 Remove test temporary directories when finished
They're all grouped together in a parent directory that gets removed. Testing with mmap storage can generate very large files on bad filesystems.
2017-09-18 12:14:16 +10:00
Matt Joiner
2aa20b3e22 Don't verify data at startup, add Torrent.Piece.VerifyData and Torrent.VerifyData for this purpose
This has the side effect of deflaking a lot of tests that race to verify data when a torrent is added.
2017-09-15 19:22:32 +10:00
Matt Joiner
5d3ee0a531 Fix panic when error occurs binding uTP socket
Fixes #187.
2017-09-14 00:25:29 +10:00
Matt Joiner
705de83a5a TestUTPRawConn: More tidying, and slow down the rate 2017-09-01 15:22:08 +10:00
Matt Joiner
158dab71c9 Use require in some places in TestUTPRawConn 2017-09-01 15:09:10 +10:00
Matt Joiner
a8a1ea755d Remove unused functions 2017-08-26 13:23:04 +10:00
Matt Joiner
c0dd0f63a1 Fix test 2017-08-07 22:11:25 +10:00
Matt Joiner
2624281842 Changes for dht-cleanup 2017-07-21 00:40:49 +10:00
Matt Joiner
ae8b03d586 Use go-libutp if cgo is enabled 2017-06-16 18:08:24 +10:00
Matt Joiner
49648b9ae1 Close implicit Client default storage on Client.Close
Fixes #158
2017-06-01 22:57:08 +10:00
Matt Joiner
1c37903a74 Remove FileStorePieces storage backend
ResourcePIeces is now preferred.
2017-01-05 17:00:59 +11:00
Matt Joiner
1e033d5f91 sortimports 2017-01-05 17:00:16 +11:00
Matt Joiner
b68d7cd08e dht/… moved to github.com/anacrolix/dht 2016-12-14 11:43:37 +11:00
Matt Joiner
3602d90b65 gofmt simplify 2016-11-22 14:01:09 +11:00
Matt Joiner
d4cbdc5c38 Add download rate limiting
Fixes #121.
2016-10-10 17:29:39 +11:00
Matt Joiner
836bb344f3 Add really simple upload rate limiting and test 2016-10-10 14:58:29 +11:00
Matt Joiner
76c24e70b5 Improve code comments 2016-10-10 14:57:34 +11:00
Matt Joiner
aefc63b9d3 Default to debug mode in client testing config 2016-10-05 15:57:38 +11:00
Matt Joiner
c593366aab Create missing intermediate directories in test 2016-09-21 21:17:22 +10:00
Matt Joiner
0c9c3d35cf Tidy up TestMultipleTorrentsWithEncryption test 2016-09-21 21:02:18 +10:00
Matt Joiner
cbeff0a496 Formatting fixes 2016-09-20 18:39:36 +10:00
Matt Joiner
594053609c Fixes for changes to metainfo.MetaInfo.UnmarshalInfo 2016-09-20 18:39:07 +10:00
Michael Howell
9a4fbb01f0 Add a test case for #114 (#117) 2016-09-17 00:01:15 +10:00
Matt Joiner
1100aaa553 Relax the seeder torrent connection stats test
The values have changed due to the recent storage change, I'm not sure why, and I don't know if it's important.
2016-09-02 15:26:21 +10:00
Matt Joiner
1e919dd6b1 Rework storage interfaces to make them simpler to implement
This allows lots of behaviour to be baked into the new Client, Torrent and Piece wrappers, rather than duplicating (badly) them in all the backend implementations.
2016-09-02 15:10:57 +10:00
Matt Joiner
ab8349eee1 Improve test reliability on Linux and reduce log noise in tests 2016-08-31 20:14:57 +10:00
Matt Joiner
3c2db92a83 Add boltdb storage backend 2016-08-31 17:48:50 +10:00
Matt Joiner
6f7623ff3c Add missing error return check in benchmark 2016-08-30 14:09:01 +10:00
Matt Joiner
2a1cef7c9e Remove the InfoEx type, and don't generate its infohash on the fly
Fixes #106.
2016-08-26 20:29:05 +10:00
Matt Joiner
534275b625 Always run seeder and leecher on the same ports, to flex dht.Socket.CloseNow 2016-07-30 00:42:22 +10:00
Matt Joiner
debcb10b08 Some comments helping to break up the blocks in testClientTransfer 2016-07-24 00:35:34 +10:00