]>
Sergey Matveev's repositories - btrtrc.git/log
Matt Joiner [Fri, 3 Jan 2020 04:37:08 +0000 (15:37 +1100)]
Upgrade to log v0.5.0
Matt Joiner [Fri, 3 Jan 2020 03:51:18 +0000 (14:51 +1100)]
cmd/torrent: Make the addr flag a string
This avoids tagflag trying to resolve it, and then passing a bad IP for different listen networks. There's also a patch to tagflag so it doesn't do this anymore.
Matt Joiner [Fri, 3 Jan 2020 03:49:43 +0000 (14:49 +1100)]
cmd/torrent: Add dht flag
Steve Yoon [Mon, 30 Dec 2019 17:58:06 +0000 (12:58 -0500)]
propagate proxy url parsing err
Sick Yoon [Sun, 22 Dec 2019 08:19:16 +0000 (03:19 -0500)]
disable listeners if proxy is configured
Matt Joiner [Sun, 29 Dec 2019 02:00:20 +0000 (13:00 +1100)]
Update dht to v2.3.1
Fixes a race in bootstrap stats.
Matt Joiner [Mon, 23 Dec 2019 03:04:07 +0000 (14:04 +1100)]
Use new anacrolix/multiless, and incorporate Peer.Trusted into peer prioritization
Matt Joiner [Mon, 23 Dec 2019 02:39:34 +0000 (13:39 +1100)]
bencode: Rename string_values->stringValues
Matt Joiner [Wed, 18 Dec 2019 05:49:15 +0000 (16:49 +1100)]
Remove unnecessary locking in Torrent.Piece
Matt Joiner [Wed, 18 Dec 2019 02:52:00 +0000 (13:52 +1100)]
Add connection trust flag, and more tests with small caches
Thanks to observations and feedback from @ccampbell.
Matt Joiner [Tue, 17 Dec 2019 09:49:40 +0000 (20:49 +1100)]
Switch back to anacrolix/sync for the Client lock
davtoro [Mon, 16 Dec 2019 02:22:24 +0000 (03:22 +0100)]
Possibility to change UPnP ID (#354)
Matt Joiner [Fri, 13 Dec 2019 04:55:56 +0000 (15:55 +1100)]
Coalesce piece state change notifications on client unlock
Reported by Craig Campbell <iamcraigcampbell@gmail.com>.
Yates [Sun, 8 Dec 2019 09:35:40 +0000 (17:35 +0800)]
use path.utf8 first for some torrent (#350)
D. HT. Yu [Sun, 8 Dec 2019 09:34:24 +0000 (17:34 +0800)]
fix if statement in `cmd/torrent/main.go` (#349)
i96751414 [Sat, 30 Nov 2019 08:53:35 +0000 (08:53 +0000)]
Fix bytesLeft for files (#348)
* Refactor (*File).bytesLeft
* Always use the same piece size
Matt Joiner [Thu, 28 Nov 2019 01:44:34 +0000 (12:44 +1100)]
Update deps
Matt Joiner [Tue, 26 Nov 2019 05:22:41 +0000 (16:22 +1100)]
Add comments on File.{first,end}PieceIndex
Matt Joiner [Tue, 26 Nov 2019 05:22:24 +0000 (16:22 +1100)]
Change File.endPieceIndex calculation
I think previously it would round-up when it shouldn't.
i96751414 [Tue, 26 Nov 2019 00:54:26 +0000 (00:54 +0000)]
Add BytesCompleted method for files (#347)
* Add BytesCompleted method for files
* Make sure we check limit pieces correctly
* Remove unnecessary info check
Matt Joiner [Wed, 20 Nov 2019 09:04:47 +0000 (20:04 +1100)]
Include piece index in log message
Anthony Raymond [Wed, 20 Nov 2019 05:31:54 +0000 (06:31 +0100)]
Anthonyraymond export well known (#346)
* Export HttpResponse from tracker/http.go
* Update http_test.go
Anthony Raymond [Thu, 14 Nov 2019 23:22:59 +0000 (00:22 +0100)]
Export Peer function (#343)
* Export function to be use-able in library
* Update method call
Matt Joiner [Wed, 6 Nov 2019 21:56:56 +0000 (08:56 +1100)]
Use latest golang.org/x/time
Includes rate.Limiter.SetBurst{,At}.
Matt Joiner [Wed, 6 Nov 2019 21:51:14 +0000 (08:51 +1100)]
Include traversal stats in completed bootstrap log message
Matt Joiner [Mon, 4 Nov 2019 01:11:26 +0000 (12:11 +1100)]
Use default connection tracking values
Matt Joiner [Sun, 3 Nov 2019 22:19:07 +0000 (09:19 +1100)]
Move entirely to etcd-io/bbolt
Matt Joiner [Sun, 3 Nov 2019 02:04:46 +0000 (13:04 +1100)]
Moved to anacrolix/stm
Matt Joiner [Sat, 2 Nov 2019 11:41:53 +0000 (22:41 +1100)]
Use stm versions of dht and missinggo, and use anacrolix/stm
Matt Joiner [Sat, 2 Nov 2019 11:35:57 +0000 (22:35 +1100)]
Use missinggo/v2/conntrack
Matt Joiner [Thu, 17 Oct 2019 06:46:35 +0000 (17:46 +1100)]
Rename peer source constants
Matt Joiner [Thu, 17 Oct 2019 06:46:09 +0000 (17:46 +1100)]
Update dht to include interface change to OnAnnouncePeer
Matt Joiner [Tue, 15 Oct 2019 03:59:23 +0000 (14:59 +1100)]
In the torrent status, sort trackers by the scheme last
Matt Joiner [Sat, 12 Oct 2019 00:07:49 +0000 (11:07 +1100)]
Replace github.com/boltdb/bolt with github.com/etcd-io/bbolt
Matt Joiner [Fri, 11 Oct 2019 06:37:22 +0000 (17:37 +1100)]
Don't close shared client piece completion in mmap storage
Fixes #335.
Matt Joiner [Fri, 11 Oct 2019 06:36:46 +0000 (17:36 +1100)]
Don't ignore error getting mmap piece completion
Matt Joiner [Fri, 11 Oct 2019 06:34:07 +0000 (17:34 +1100)]
Add a test for issue #335
Matt Joiner [Fri, 11 Oct 2019 04:07:22 +0000 (15:07 +1100)]
Add release badge
Matt Joiner [Fri, 4 Oct 2019 02:38:46 +0000 (12:38 +1000)]
Fix logging panic in BenchmarkConnectionMainReadLoop
Matt Joiner [Fri, 4 Oct 2019 02:32:12 +0000 (12:32 +1000)]
Update dht to include the logging fixes
Matt Joiner [Thu, 3 Oct 2019 09:12:33 +0000 (19:12 +1000)]
Add code for dumping log Msg values to TestingConfig
Matt Joiner [Thu, 3 Oct 2019 09:11:45 +0000 (19:11 +1000)]
Add Client.String
Matt Joiner [Thu, 3 Oct 2019 09:09:55 +0000 (19:09 +1000)]
Add some logging for connections and metadata requests
Matt Joiner [Tue, 1 Oct 2019 11:16:18 +0000 (21:16 +1000)]
Add connection.String
Matt Joiner [Tue, 1 Oct 2019 11:16:02 +0000 (21:16 +1000)]
Prefix torrent logger message text
Matt Joiner [Tue, 1 Oct 2019 08:46:10 +0000 (18:46 +1000)]
Remove unnecessary extra check for metadata extension support
Matt Joiner [Tue, 1 Oct 2019 08:45:36 +0000 (18:45 +1000)]
Call rand.Shuffle instead of rand.Perm
Matt Joiner [Tue, 1 Oct 2019 08:13:55 +0000 (18:13 +1000)]
Add comments
Matt Joiner [Tue, 1 Oct 2019 08:13:16 +0000 (18:13 +1000)]
Sort inbound messages cases by wire value
Matt Joiner [Tue, 1 Oct 2019 08:11:44 +0000 (18:11 +1000)]
mse: Fix race in BenchmarkStreamRC4
Matt Joiner [Tue, 1 Oct 2019 08:10:00 +0000 (18:10 +1000)]
CI: Run bench tests with race detector
Matt Joiner [Tue, 24 Sep 2019 06:50:17 +0000 (16:50 +1000)]
Switch CI to go1.13
Matt Joiner [Tue, 24 Sep 2019 06:29:29 +0000 (16:29 +1000)]
Add comments to metainfo.Magnet fields
Matt Joiner [Tue, 24 Sep 2019 06:29:17 +0000 (16:29 +1000)]
metainfo.Magnet.String: Always put xt first again, and with specific encoding
Matt Joiner [Tue, 24 Sep 2019 05:52:18 +0000 (15:52 +1000)]
metainfo: Add Magnet.Params for more open handling
Addresses #310.
Matt Joiner [Tue, 24 Sep 2019 05:51:08 +0000 (15:51 +1000)]
Update the magnet tests
These must have been very old, the style is appalling.
Matt Joiner [Fri, 13 Sep 2019 01:55:02 +0000 (11:55 +1000)]
Tidy up UPnP logging
Matt Joiner [Fri, 13 Sep 2019 00:48:55 +0000 (10:48 +1000)]
go mod tidy
Matt Joiner [Thu, 12 Sep 2019 22:46:30 +0000 (08:46 +1000)]
Pass logger to DHTs
Matt Joiner [Fri, 23 Aug 2019 02:19:28 +0000 (12:19 +1000)]
Fix a crash when receiving a request when we don't yet have the torrent info
Matt Joiner [Wed, 21 Aug 2019 03:16:55 +0000 (13:16 +1000)]
Reduce tracker retry for failed announces to 1 minute
Matt Joiner [Thu, 22 Aug 2019 03:59:04 +0000 (13:59 +1000)]
Lots of improvements to logging
Matt Joiner [Thu, 22 Aug 2019 00:20:13 +0000 (10:20 +1000)]
Add missing debug level to log statement
Matt Joiner [Wed, 21 Aug 2019 03:31:33 +0000 (13:31 +1000)]
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.
Matt Joiner [Wed, 21 Aug 2019 00:43:06 +0000 (10:43 +1000)]
Tidy up piece completion change handling
Matt Joiner [Wed, 21 Aug 2019 11:00:47 +0000 (21:00 +1000)]
Include the piece number when logging piece hash errors
Matt Joiner [Wed, 21 Aug 2019 10:58:40 +0000 (20:58 +1000)]
goimports -local
Matt Joiner [Wed, 21 Aug 2019 10:55:43 +0000 (20:55 +1000)]
Make Reader log through its parent
Matt Joiner [Wed, 21 Aug 2019 10:44:12 +0000 (20:44 +1000)]
Upgrade to simplified logger
Matt Joiner [Mon, 19 Aug 2019 02:15:54 +0000 (12:15 +1000)]
gofmt simplify
Matt Joiner [Sun, 18 Aug 2019 06:52:00 +0000 (16:52 +1000)]
Add mse/cmd/mse
Matt Joiner [Sun, 18 Aug 2019 06:51:20 +0000 (16:51 +1000)]
metainfo: Add fuzzing func
Matt Joiner [Thu, 15 Aug 2019 00:21:00 +0000 (10:21 +1000)]
go mod tidy
Matt Joiner [Thu, 15 Aug 2019 00:17:39 +0000 (10:17 +1000)]
Add some timing code to Client.dialFirst
Matt Joiner [Sun, 11 Aug 2019 03:17:47 +0000 (13:17 +1000)]
Don't include the handshake in the dial timeout for outgoing connections
Matt Joiner [Sat, 10 Aug 2019 08:46:07 +0000 (18:46 +1000)]
Update all imports of dht to v2
Matt Joiner [Tue, 30 Jul 2019 07:26:12 +0000 (17:26 +1000)]
Include remote address when logging failure to establish outbound connection
Matt Joiner [Tue, 30 Jul 2019 07:25:10 +0000 (17:25 +1000)]
fs: Fix test failure when default client port is unavailable
Matt Joiner [Tue, 30 Jul 2019 07:19:14 +0000 (17:19 +1000)]
NewClient nil ClientConfig should use dynamic port
It's pretty hard to test otherwise, if something's already on the default port.
Matt Joiner [Tue, 30 Jul 2019 07:18:09 +0000 (17:18 +1000)]
Fix race spewing Client stats
Matt Joiner [Fri, 26 Jul 2019 01:00:28 +0000 (11:00 +1000)]
Don't test with -race or -v for 32-bit
We just want to know that it builds and works for normal use.
Matt Joiner [Fri, 26 Jul 2019 00:56:13 +0000 (10:56 +1000)]
Fix tests on 32-bit
Matt Joiner [Fri, 26 Jul 2019 00:49:36 +0000 (10:49 +1000)]
Test 32-bit arch on CircleCI
See https://github.com/anacrolix/missinggo/issues/16
Matt Joiner [Thu, 25 Jul 2019 04:15:36 +0000 (14:15 +1000)]
Re-order the logic in Piece.VerifyData for better logging
Matt Joiner [Thu, 25 Jul 2019 04:13:42 +0000 (14:13 +1000)]
Comments on the VerifyData methods
Matt Joiner [Thu, 25 Jul 2019 04:10:21 +0000 (14:10 +1000)]
Ignore cached piece completion state when verifying data
Forcing data to be checked via VerifyData, and probably other places where piece checks are queued were being short-circuited due to cached piece completion. If a piece check is queued, or verifyData called, the cached completion state should be ignored.
Matt Joiner [Tue, 23 Jul 2019 01:30:05 +0000 (11:30 +1000)]
Improve comments on some config fields
Matt Joiner [Mon, 22 Jul 2019 12:42:05 +0000 (22:42 +1000)]
Add astronomer rating badge
Matt Joiner [Fri, 19 Jul 2019 06:19:21 +0000 (16:19 +1000)]
Change the default client port
Matt Joiner [Fri, 19 Jul 2019 06:17:38 +0000 (16:17 +1000)]
Add some commented out logging
Matt Joiner [Fri, 19 Jul 2019 06:17:10 +0000 (16:17 +1000)]
Add an error check in a test
Managed to get this to fail, and it just panicked.
Matt Joiner [Fri, 19 Jul 2019 06:15:46 +0000 (16:15 +1000)]
Always return errors when handshakes or dialing fails
I intend to use xerrors-style error handling for special cases.
Matt Joiner [Fri, 19 Jul 2019 04:56:29 +0000 (14:56 +1000)]
Tidy up function signature
Matt Joiner [Fri, 19 Jul 2019 04:46:48 +0000 (14:46 +1000)]
Restart dial timeout for fallback header obfuscation attempt
Matt Joiner [Fri, 19 Jul 2019 04:13:42 +0000 (14:13 +1000)]
Try with the non-preferred header obfuscation if there's an error
The function called was more selective about what it returned as an error, but that style is outdated (should use xerrors), and no longer returns as expected.
Matt Joiner [Fri, 19 Jul 2019 03:23:36 +0000 (13:23 +1000)]
Rework header obfuscation and add tests for fallbacks
Matt Joiner [Fri, 19 Jul 2019 03:07:40 +0000 (13:07 +1000)]
Add dummy code for emulating the bug in #114
Useful for ensuring that the test can still reproduce the issue with changes to encryption handling.
Matt Joiner [Fri, 19 Jul 2019 03:04:10 +0000 (13:04 +1000)]
Comments
Matt Joiner [Fri, 19 Jul 2019 03:01:36 +0000 (13:01 +1000)]
cmd/torrent: Add flag for progress bar
Matt Joiner [Fri, 19 Jul 2019 03:00:31 +0000 (13:00 +1000)]
cmd/torrent: Don't log the public IP flag value