]>
Sergey Matveev's repositories - btrtrc.git/log
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
Matt Joiner [Wed, 17 Jul 2019 08:17:05 +0000 (18:17 +1000)]
go mod tidy
Matt Joiner [Wed, 17 Jul 2019 08:12:54 +0000 (18:12 +1000)]
cmd/torrent-magnet: Add a description to command help output
Matt Joiner [Wed, 17 Jul 2019 08:12:11 +0000 (18:12 +1000)]
Fix announcing to S3 HTTP trackers
Matt Joiner [Wed, 17 Jul 2019 08:03:56 +0000 (18:03 +1000)]
Use fork of elgatito/upnp that contains go module files
Avoids persistent `go: finding github.com/op/go-logging latest` when using vgo.
Matt Joiner [Wed, 17 Jul 2019 08:00:40 +0000 (18:00 +1000)]
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.
Matt Joiner [Wed, 17 Jul 2019 05:28:49 +0000 (15:28 +1000)]
cmd/torrent-metainfo-pprint: Fix -files for single-file torrents
Matt Joiner [Wed, 17 Jul 2019 01:56:25 +0000 (11:56 +1000)]
Send tracker stopped event from the tracker scraper routine
Fixes potential blocking on the announce while the client lock is held, as well as differing arguments to the other announces introduced by #321.
Matt Joiner [Tue, 16 Jul 2019 01:08:17 +0000 (11:08 +1000)]
vgo get -u && go mod tidy
Matt Joiner [Mon, 24 Jun 2019 04:12:14 +0000 (14:12 +1000)]
Create FUNDING.yml
Matt Joiner [Fri, 21 Jun 2019 04:53:57 +0000 (14:53 +1000)]
Ignore ".torrent.bolt.db" which is generated by unit tests
Matt Joiner [Fri, 21 Jun 2019 04:50:49 +0000 (14:50 +1000)]
Refactor Client.dialFirst
Matt Joiner [Fri, 21 Jun 2019 04:49:43 +0000 (14:49 +1000)]
Remove unnecessary import alias
Matt Joiner [Fri, 21 Jun 2019 04:49:21 +0000 (14:49 +1000)]
Count client listener accepts
Matt Joiner [Fri, 21 Jun 2019 04:49:01 +0000 (14:49 +1000)]
Add go 1.13 to go.mod
Matt Joiner [Tue, 18 Jun 2019 00:27:17 +0000 (10:27 +1000)]
Remove "Sending stopped event to trackers" log
Matt Joiner [Thu, 13 Jun 2019 03:07:37 +0000 (13:07 +1000)]
bencode: Decode singleton lists of the expected type
Fixes #297.
Matt Joiner [Thu, 13 Jun 2019 03:06:25 +0000 (13:06 +1000)]
Code formatting
Matt Joiner [Thu, 13 Jun 2019 02:35:11 +0000 (12:35 +1000)]
bencode: Improve UnmarshalTypeError string and list parsing error context
Helps with #297.
Matt Joiner [Thu, 13 Jun 2019 02:18:08 +0000 (12:18 +1000)]
Track concurrent chunk writes
Leandro Martelli [Fri, 31 May 2019 16:11:01 +0000 (17:11 +0100)]
Adding Started and Stopped events
BruceWang [Thu, 23 May 2019 02:13:48 +0000 (10:13 +0800)]
Add OnQuery Hook
boypt [Thu, 23 May 2019 05:58:17 +0000 (13:58 +0800)]
allow ConnStats being marsheled to json
Matt Joiner [Tue, 23 Apr 2019 23:34:51 +0000 (09:34 +1000)]
Update CircleCI to use go1.12 instead of master
Radoslav Georgiev [Tue, 16 Apr 2019 20:28:10 +0000 (23:28 +0300)]
torrentfs: fix a bug where the basenames of files are extracted incorrectly when listing the entries in a directory
Radoslav Georgiev [Tue, 16 Apr 2019 20:23:03 +0000 (23:23 +0300)]
torrentfs: fix a bug where ENOENT is returned when the node for an entry in the root directory of a torrent is requested
anatasluo [Mon, 15 Apr 2019 23:47:07 +0000 (19:47 -0400)]
add one downstream project (#315)
davtoro [Sat, 13 Apr 2019 13:25:19 +0000 (15:25 +0200)]
check if peer id exists
Matt Joiner [Wed, 10 Apr 2019 08:27:54 +0000 (18:27 +1000)]
Fix segfault on nil conntrack.EntryHandle instance when dialing
Fixes https://github.com/anacrolix/torrent/issues/314. Comments were added to the the conntrack package master, but have no functional change required here.
Matt Joiner [Tue, 9 Apr 2019 02:57:54 +0000 (12:57 +1000)]
When failing to read stored data, try updating only the completion state for the failed piece
On rare occasions, reads are failing in a loop, exhausting all the available file descriptors. It's not clear why, it could be an error in the filecache storage backend I'm using, or some logic error regarding when it's okay to try to read.
Matt Joiner [Tue, 9 Apr 2019 02:54:41 +0000 (12:54 +1000)]
Make the default conntracker instance unlimited for now
There are rate limiting issues in the DHT that need to be resolved.
Matt Joiner [Tue, 9 Apr 2019 02:53:18 +0000 (12:53 +1000)]
Improve some types in reader.readOnceAt
Matt Joiner [Thu, 28 Mar 2019 21:48:56 +0000 (08:48 +1100)]
Fix leaked conntrack.EntryHandle
Matt Joiner [Fri, 22 Mar 2019 14:34:55 +0000 (01:34 +1100)]
Remove gomobile from CI
https://github.com/golang/go/issues/27234
Matt Joiner [Fri, 22 Mar 2019 12:36:59 +0000 (23:36 +1100)]
Fix gomobile install in CI
Matt Joiner [Wed, 20 Mar 2019 00:01:56 +0000 (11:01 +1100)]
Fix race condition in Torrent.SetDisplayName
Matt Joiner [Tue, 19 Mar 2019 09:43:51 +0000 (20:43 +1100)]
vgo get -u
Matt Joiner [Tue, 19 Mar 2019 09:35:06 +0000 (20:35 +1100)]
vgo mod tidy
Matt Joiner [Tue, 19 Mar 2019 08:09:31 +0000 (19:09 +1100)]
Add github.com/spaolacci/murmur3 indirect
Matt Joiner [Tue, 12 Mar 2019 00:22:25 +0000 (11:22 +1100)]
Fix race in Torrent.String
Matt Joiner [Mon, 11 Mar 2019 00:51:29 +0000 (11:51 +1100)]
Update missinggo and dht
Matt Joiner [Sun, 10 Mar 2019 23:45:43 +0000 (10:45 +1100)]
Panic on chunk write errors
The torrent client will download indefinitely when this occurs, a strategy to handle or raise the error more appropriately is required.
Matt Joiner [Sun, 10 Mar 2019 23:43:02 +0000 (10:43 +1100)]
Make use of the new context parameter in conntrack Wait
Matt Joiner [Sun, 3 Mar 2019 03:40:49 +0000 (14:40 +1100)]
Update to missinggo v0.2.0
Matt Joiner [Sun, 3 Mar 2019 03:30:46 +0000 (14:30 +1100)]
Fix double quoting in a log statement
Matt Joiner [Sun, 3 Mar 2019 03:30:02 +0000 (14:30 +1100)]
Move multiless to missinggo
Masih Yeganeh [Wed, 6 Feb 2019 06:51:03 +0000 (10:21 +0330)]
Adds more flags to torrent-create
Flags for setting Comment and CreatedBy fields and starting with empty AnnounceList
Matt Joiner [Tue, 19 Feb 2019 03:41:52 +0000 (14:41 +1100)]
Avoid allocating a slice when iterating pending chunks
Matt Joiner [Tue, 19 Feb 2019 03:38:31 +0000 (14:38 +1100)]
go mod tidy
Matt Joiner [Sat, 16 Feb 2019 07:33:14 +0000 (18:33 +1100)]
Torrent.String: Quote raw names
Matt Joiner [Wed, 30 Jan 2019 06:54:02 +0000 (17:54 +1100)]
Reduce allocations for Piece.hash
Matt Joiner [Wed, 30 Jan 2019 04:19:32 +0000 (15:19 +1100)]
Report allocs in BenchmarkAddLargeTorrent
Matt Joiner [Wed, 30 Jan 2019 04:18:00 +0000 (15:18 +1100)]
Remove unnecessary blank line
Matt Joiner [Tue, 22 Jan 2019 00:41:07 +0000 (01:41 +0100)]
Reorder some code in dht announcer
Matt Joiner [Tue, 22 Jan 2019 00:16:41 +0000 (01:16 +0100)]
Fix cancellation of dht announce when peers are wanted
Matt Joiner [Mon, 21 Jan 2019 21:59:13 +0000 (22:59 +0100)]
go.mod: Require dht with krpc.Msg.Token change
Matt Joiner [Mon, 21 Jan 2019 02:46:26 +0000 (03:46 +0100)]
Restart DHT announces at regular intervals
The existing implementation would crawl the DHT until the address bloom filter was full. This could take ages unless enough peers were found to fill the pending nodes for the torrent to the high water mark. Fixes #301.
Matt Joiner [Mon, 21 Jan 2019 21:53:42 +0000 (22:53 +0100)]
Fix benchmark not building with changes to krpc.Msg.Token
Matt Joiner [Mon, 21 Jan 2019 21:36:40 +0000 (22:36 +0100)]
Fix test for dht query context changes
Matt Joiner [Wed, 16 Jan 2019 10:11:47 +0000 (10:11 +0000)]
Fix build error
Matt Joiner [Tue, 15 Jan 2019 18:18:30 +0000 (18:18 +0000)]
Switch entirely to anacrolix/log
Matt Joiner [Tue, 15 Jan 2019 17:56:11 +0000 (17:56 +0000)]
Merge branch 'ci'
Matt Joiner [Wed, 9 Jan 2019 08:55:55 +0000 (19:55 +1100)]
Cache go master, use existing go for bootstrap, and tighten some cache keys
Matt Joiner [Wed, 9 Jan 2019 01:25:06 +0000 (12:25 +1100)]
Cache the GOCACHE
Go mod doesn't store build artifacts in $GOPATH/pkg anymore.
Matt Joiner [Wed, 9 Jan 2019 00:23:07 +0000 (11:23 +1100)]
Cache the entire go pkg folder
Matt Joiner [Wed, 9 Jan 2019 00:21:49 +0000 (11:21 +1100)]
Time the module downloads
Matt Joiner [Tue, 8 Jan 2019 23:47:19 +0000 (10:47 +1100)]
Manually add modules that refuse to be added automatically
Matt Joiner [Tue, 8 Jan 2019 08:20:53 +0000 (19:20 +1100)]
tracker: Fix network error handling in unit test
Matt Joiner [Tue, 8 Jan 2019 08:20:53 +0000 (19:20 +1100)]
tracker: Fix network error handling in unit test
Matt Joiner [Tue, 8 Jan 2019 07:57:15 +0000 (18:57 +1100)]
Change the go-mod cache key and path
Matt Joiner [Tue, 8 Jan 2019 06:07:11 +0000 (17:07 +1100)]
Break up compiling go master into different steps
Matt Joiner [Tue, 8 Jan 2019 05:59:49 +0000 (16:59 +1100)]
Fix yaml formatting
What a stupid format.
Matt Joiner [Tue, 8 Jan 2019 05:57:33 +0000 (16:57 +1100)]
Add pkg/mod caching
Matt Joiner [Tue, 8 Jan 2019 05:37:40 +0000 (16:37 +1100)]
Add extra go debug steps
Matt Joiner [Tue, 8 Jan 2019 05:31:26 +0000 (16:31 +1100)]
Get deps in a separate step
Matt Joiner [Tue, 8 Jan 2019 04:47:01 +0000 (15:47 +1100)]
cmd/torrent: Add -publicIp flag
Matt Joiner [Tue, 8 Jan 2019 04:46:03 +0000 (15:46 +1100)]
Switch to Client read locks for a few methods
Matt Joiner [Tue, 8 Jan 2019 04:45:25 +0000 (15:45 +1100)]
Update go mod turds
Matt Joiner [Thu, 29 Nov 2018 07:33:33 +0000 (18:33 +1100)]
Improve bootstrap result log message
Matt Joiner [Wed, 28 Nov 2018 01:02:25 +0000 (12:02 +1100)]
tracker: Fix some comments
Matt Joiner [Wed, 28 Nov 2018 01:02:12 +0000 (12:02 +1100)]
tracker: Add Announce.Context
Use it to rewrite a test that fails with recent go versions due to logging after test completion.
Matt Joiner [Tue, 27 Nov 2018 23:32:53 +0000 (10:32 +1100)]
Update go module files
Matt Joiner [Tue, 27 Nov 2018 23:32:44 +0000 (10:32 +1100)]
Simplify single case select
Matt Joiner [Tue, 27 Nov 2018 23:32:08 +0000 (10:32 +1100)]
Discount dial errors that won't affect connection tracking
This will reduce pressure on the conntrack instance.
Matt Joiner [Tue, 27 Nov 2018 23:30:21 +0000 (10:30 +1100)]
Improve network handling and only listen networks we will use
Fixes #290.