]> Sergey Matveev's repositories - btrtrc.git/log
btrtrc.git
5 years agoUpdate CircleCI to use go1.12 instead of master v1.1.4
Matt Joiner [Tue, 23 Apr 2019 23:34:51 +0000 (09:34 +1000)]
Update CircleCI to use go1.12 instead of master

5 years agotorrentfs: fix a bug where the basenames of files are extracted incorrectly when...
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

5 years agotorrentfs: fix a bug where ENOENT is returned when the node for an entry in the root...
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

5 years agoadd one downstream project (#315)
anatasluo [Mon, 15 Apr 2019 23:47:07 +0000 (19:47 -0400)]
add one downstream project (#315)

5 years agocheck if peer id exists
davtoro [Sat, 13 Apr 2019 13:25:19 +0000 (15:25 +0200)]
check if peer id exists

5 years agoFix segfault on nil conntrack.EntryHandle instance when dialing v1.1.3
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.

5 years agoWhen failing to read stored data, try updating only the completion state for the...
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.

5 years agoMake the default conntracker instance unlimited for now
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.

5 years agoImprove some types in reader.readOnceAt
Matt Joiner [Tue, 9 Apr 2019 02:53:18 +0000 (12:53 +1000)]
Improve some types in reader.readOnceAt

5 years agoFix leaked conntrack.EntryHandle v1.1.2
Matt Joiner [Thu, 28 Mar 2019 21:48:56 +0000 (08:48 +1100)]
Fix leaked conntrack.EntryHandle

5 years agoRemove gomobile from CI
Matt Joiner [Fri, 22 Mar 2019 14:34:55 +0000 (01:34 +1100)]
Remove gomobile from CI

https://github.com/golang/go/issues/27234

5 years agoFix gomobile install in CI
Matt Joiner [Fri, 22 Mar 2019 12:36:59 +0000 (23:36 +1100)]
Fix gomobile install in CI

5 years agoFix race condition in Torrent.SetDisplayName v1.1.1
Matt Joiner [Wed, 20 Mar 2019 00:01:56 +0000 (11:01 +1100)]
Fix race condition in Torrent.SetDisplayName

5 years agovgo get -u v1.1.0
Matt Joiner [Tue, 19 Mar 2019 09:43:51 +0000 (20:43 +1100)]
vgo get -u

5 years agovgo mod tidy
Matt Joiner [Tue, 19 Mar 2019 09:35:06 +0000 (20:35 +1100)]
vgo mod tidy

5 years agoAdd github.com/spaolacci/murmur3 indirect
Matt Joiner [Tue, 19 Mar 2019 08:09:31 +0000 (19:09 +1100)]
Add github.com/spaolacci/murmur3 indirect

5 years agoFix race in Torrent.String
Matt Joiner [Tue, 12 Mar 2019 00:22:25 +0000 (11:22 +1100)]
Fix race in Torrent.String

5 years agoUpdate missinggo and dht
Matt Joiner [Mon, 11 Mar 2019 00:51:29 +0000 (11:51 +1100)]
Update missinggo and dht

5 years agoPanic on chunk write errors
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.

5 years agoMake use of the new context parameter in conntrack Wait
Matt Joiner [Sun, 10 Mar 2019 23:43:02 +0000 (10:43 +1100)]
Make use of the new context parameter in conntrack Wait

5 years agoUpdate to missinggo v0.2.0
Matt Joiner [Sun, 3 Mar 2019 03:40:49 +0000 (14:40 +1100)]
Update to missinggo v0.2.0

5 years agoFix double quoting in a log statement
Matt Joiner [Sun, 3 Mar 2019 03:30:46 +0000 (14:30 +1100)]
Fix double quoting in a log statement

5 years agoMove multiless to missinggo
Matt Joiner [Sun, 3 Mar 2019 03:30:02 +0000 (14:30 +1100)]
Move multiless to missinggo

5 years agoAdds more flags to torrent-create
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

5 years agoAvoid allocating a slice when iterating pending chunks
Matt Joiner [Tue, 19 Feb 2019 03:41:52 +0000 (14:41 +1100)]
Avoid allocating a slice when iterating pending chunks

5 years agogo mod tidy
Matt Joiner [Tue, 19 Feb 2019 03:38:31 +0000 (14:38 +1100)]
go mod tidy

5 years agoTorrent.String: Quote raw names
Matt Joiner [Sat, 16 Feb 2019 07:33:14 +0000 (18:33 +1100)]
Torrent.String: Quote raw names

5 years agoReduce allocations for Piece.hash
Matt Joiner [Wed, 30 Jan 2019 06:54:02 +0000 (17:54 +1100)]
Reduce allocations for Piece.hash

5 years agoReport allocs in BenchmarkAddLargeTorrent
Matt Joiner [Wed, 30 Jan 2019 04:19:32 +0000 (15:19 +1100)]
Report allocs in BenchmarkAddLargeTorrent

5 years agoRemove unnecessary blank line
Matt Joiner [Wed, 30 Jan 2019 04:18:00 +0000 (15:18 +1100)]
Remove unnecessary blank line

5 years agoReorder some code in dht announcer
Matt Joiner [Tue, 22 Jan 2019 00:41:07 +0000 (01:41 +0100)]
Reorder some code in dht announcer

5 years agoFix cancellation of dht announce when peers are wanted
Matt Joiner [Tue, 22 Jan 2019 00:16:41 +0000 (01:16 +0100)]
Fix cancellation of dht announce when peers are wanted

5 years agogo.mod: Require dht with krpc.Msg.Token change
Matt Joiner [Mon, 21 Jan 2019 21:59:13 +0000 (22:59 +0100)]
go.mod: Require dht with krpc.Msg.Token change

5 years agoRestart DHT announces at regular intervals
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.

5 years agoFix benchmark not building with changes to krpc.Msg.Token
Matt Joiner [Mon, 21 Jan 2019 21:53:42 +0000 (22:53 +0100)]
Fix benchmark not building with changes to krpc.Msg.Token

5 years agoFix test for dht query context changes
Matt Joiner [Mon, 21 Jan 2019 21:36:40 +0000 (22:36 +0100)]
Fix test for dht query context changes

5 years agoFix build error
Matt Joiner [Wed, 16 Jan 2019 10:11:47 +0000 (10:11 +0000)]
Fix build error

5 years agoSwitch entirely to anacrolix/log
Matt Joiner [Tue, 15 Jan 2019 18:18:30 +0000 (18:18 +0000)]
Switch entirely to anacrolix/log

5 years agoMerge branch 'ci'
Matt Joiner [Tue, 15 Jan 2019 17:56:11 +0000 (17:56 +0000)]
Merge branch 'ci'

5 years agoCache go master, use existing go for bootstrap, and tighten some cache keys
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

5 years agoCache the GOCACHE
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.

5 years agoCache the entire go pkg folder
Matt Joiner [Wed, 9 Jan 2019 00:23:07 +0000 (11:23 +1100)]
Cache the entire go pkg folder

5 years agoTime the module downloads
Matt Joiner [Wed, 9 Jan 2019 00:21:49 +0000 (11:21 +1100)]
Time the module downloads

5 years agoManually add modules that refuse to be added automatically
Matt Joiner [Tue, 8 Jan 2019 23:47:19 +0000 (10:47 +1100)]
Manually add modules that refuse to be added automatically

5 years agotracker: 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

5 years agotracker: 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

5 years agoChange the go-mod cache key and path
Matt Joiner [Tue, 8 Jan 2019 07:57:15 +0000 (18:57 +1100)]
Change the go-mod cache key and path

5 years agoBreak up compiling go master into different steps
Matt Joiner [Tue, 8 Jan 2019 06:07:11 +0000 (17:07 +1100)]
Break up compiling go master into different steps

5 years agoFix yaml formatting
Matt Joiner [Tue, 8 Jan 2019 05:59:49 +0000 (16:59 +1100)]
Fix yaml formatting

What a stupid format.

5 years agoAdd pkg/mod caching
Matt Joiner [Tue, 8 Jan 2019 05:57:33 +0000 (16:57 +1100)]
Add pkg/mod caching

5 years agoAdd extra go debug steps
Matt Joiner [Tue, 8 Jan 2019 05:37:40 +0000 (16:37 +1100)]
Add extra go debug steps

5 years agoGet deps in a separate step
Matt Joiner [Tue, 8 Jan 2019 05:31:26 +0000 (16:31 +1100)]
Get deps in a separate step

5 years agocmd/torrent: Add -publicIp flag v1.0.0
Matt Joiner [Tue, 8 Jan 2019 04:47:01 +0000 (15:47 +1100)]
cmd/torrent: Add -publicIp flag

5 years agoSwitch to Client read locks for a few methods
Matt Joiner [Tue, 8 Jan 2019 04:46:03 +0000 (15:46 +1100)]
Switch to Client read locks for a few methods

5 years agoUpdate go mod turds
Matt Joiner [Tue, 8 Jan 2019 04:45:25 +0000 (15:45 +1100)]
Update go mod turds

5 years agoImprove bootstrap result log message
Matt Joiner [Thu, 29 Nov 2018 07:33:33 +0000 (18:33 +1100)]
Improve bootstrap result log message

5 years agotracker: Fix some comments
Matt Joiner [Wed, 28 Nov 2018 01:02:25 +0000 (12:02 +1100)]
tracker: Fix some comments

5 years agotracker: Add Announce.Context
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.

5 years agoUpdate go module files
Matt Joiner [Tue, 27 Nov 2018 23:32:53 +0000 (10:32 +1100)]
Update go module files

5 years agoSimplify single case select
Matt Joiner [Tue, 27 Nov 2018 23:32:44 +0000 (10:32 +1100)]
Simplify single case select

5 years agoDiscount dial errors that won't affect connection tracking
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.

5 years agoImprove network handling and only listen networks we will use
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.

5 years agoRemove unused type
Matt Joiner [Tue, 27 Nov 2018 23:26:13 +0000 (10:26 +1100)]
Remove unused type

5 years agoRemove unused code
Matt Joiner [Tue, 27 Nov 2018 12:57:17 +0000 (23:57 +1100)]
Remove unused code

5 years agoUse new conntrack priorities
Matt Joiner [Tue, 27 Nov 2018 12:22:24 +0000 (23:22 +1100)]
Use new conntrack priorities

Fixes #295

5 years agometainfo: Fix test
Matt Joiner [Tue, 27 Nov 2018 00:05:32 +0000 (11:05 +1100)]
metainfo: Fix test

[]byte(nil) now correctly bencodes to a string

5 years agobencode: Fix marshalling of []byte(nil)
Matt Joiner [Mon, 26 Nov 2018 21:57:17 +0000 (08:57 +1100)]
bencode: Fix marshalling of []byte(nil)

Also fixes #293.

5 years agoUpdate go module files
Matt Joiner [Wed, 21 Nov 2018 06:25:09 +0000 (17:25 +1100)]
Update go module files

5 years agoBump protocol strings
Matt Joiner [Wed, 21 Nov 2018 06:06:31 +0000 (17:06 +1100)]
Bump protocol strings

5 years agoLog initial DHT bootstrap results
Matt Joiner [Wed, 21 Nov 2018 06:05:56 +0000 (17:05 +1100)]
Log initial DHT bootstrap results

5 years agoRemove log that used missinggo.CryHeard
Matt Joiner [Wed, 21 Nov 2018 06:05:30 +0000 (17:05 +1100)]
Remove log that used missinggo.CryHeard

5 years agoUpdate go module files
Matt Joiner [Wed, 21 Nov 2018 06:04:27 +0000 (17:04 +1100)]
Update go module files

5 years agoAdd initial connection tracking
Matt Joiner [Wed, 21 Nov 2018 06:02:22 +0000 (17:02 +1100)]
Add initial connection tracking

5 years agoUpdate missinggo dep
Matt Joiner [Mon, 19 Nov 2018 10:03:33 +0000 (21:03 +1100)]
Update missinggo dep

5 years agoImprove error handling for listening
Matt Joiner [Mon, 19 Nov 2018 09:35:21 +0000 (20:35 +1100)]
Improve error handling for listening

Will help with #290.

5 years agoMove IpPort to missinggo
Matt Joiner [Thu, 15 Nov 2018 23:35:30 +0000 (10:35 +1100)]
Move IpPort to missinggo

5 years agoconnection.remoteIpPort is correct
Matt Joiner [Sun, 4 Nov 2018 05:59:06 +0000 (16:59 +1100)]
connection.remoteIpPort is correct

5 years agoStore remoteAddr with each connection
Matt Joiner [Sun, 4 Nov 2018 05:56:55 +0000 (16:56 +1100)]
Store remoteAddr with each connection

It would appear net.Conns returned from proxies don't have a RemoteAddr the client expects.

5 years agoPromote ipPort to its own file
Matt Joiner [Sun, 4 Nov 2018 05:56:02 +0000 (16:56 +1100)]
Promote ipPort to its own file

5 years agoFix benchmark broken by changes to client listeners
Matt Joiner [Sun, 4 Nov 2018 06:51:32 +0000 (17:51 +1100)]
Fix benchmark broken by changes to client listeners

5 years agoAdd default DHT servers when UTP disabled
Matt Joiner [Sun, 4 Nov 2018 06:43:47 +0000 (17:43 +1100)]
Add default DHT servers when UTP disabled

Also ensures that UDP and TCP sockets are reserved, even if not used, and fixes tests. Fixes #289.

5 years agoAdd test for dht servers when utp disabled
Matt Joiner [Sun, 4 Nov 2018 06:42:12 +0000 (17:42 +1100)]
Add test for dht servers when utp disabled

#289

5 years agoAdd establish outgoing connection expvar
Matt Joiner [Sun, 4 Nov 2018 05:12:16 +0000 (16:12 +1100)]
Add establish outgoing connection expvar

5 years agoSwitch to goimports import sorting
Matt Joiner [Fri, 2 Nov 2018 12:12:01 +0000 (23:12 +1100)]
Switch to goimports import sorting

Used to use sortimports, but it's old, and goimports seems to have an opinion now.

5 years agoAdd dial rate limiting
Matt Joiner [Fri, 2 Nov 2018 12:09:52 +0000 (23:09 +1100)]
Add dial rate limiting

Fixes #273.

5 years agoreverting usage of proxy for http requests
Denis Kuzmenok [Tue, 30 Oct 2018 22:32:33 +0000 (23:32 +0100)]
reverting usage of proxy for http requests

5 years agoFix timer leak in tracker announces when peers are wanted
Matt Joiner [Sun, 21 Oct 2018 07:24:22 +0000 (18:24 +1100)]
Fix timer leak in tracker announces when peers are wanted

Fixes #281.

5 years agoAdd go.sum file
Matt Joiner [Thu, 18 Oct 2018 00:11:32 +0000 (11:11 +1100)]
Add go.sum file

5 years agoRemove unused tracker.defaultClient
Matt Joiner [Thu, 18 Oct 2018 00:11:17 +0000 (11:11 +1100)]
Remove unused tracker.defaultClient

5 years agoFix TLS handshake failures with https trackers
Matt Joiner [Thu, 18 Oct 2018 00:09:56 +0000 (11:09 +1100)]
Fix TLS handshake failures with https trackers

Fixes #276

5 years agoAlways announce to trackers every interval, and announce earlier if short on peers
Matt Joiner [Wed, 17 Oct 2018 23:35:38 +0000 (10:35 +1100)]
Always announce to trackers every interval, and announce earlier if short on peers

5 years agosortimports
Matt Joiner [Tue, 16 Oct 2018 09:23:43 +0000 (20:23 +1100)]
sortimports

5 years agoAdd a prefix to logonce logger output
Matt Joiner [Mon, 3 Sep 2018 01:48:31 +0000 (11:48 +1000)]
Add a prefix to logonce logger output

5 years agoAdd comments to some ClientConfig fields
Matt Joiner [Mon, 3 Sep 2018 01:48:11 +0000 (11:48 +1000)]
Add comments to some ClientConfig fields

5 years agoRevert "Make requestStrategy 3 the default"
Matt Joiner [Sat, 25 Aug 2018 06:43:28 +0000 (16:43 +1000)]
Revert "Make requestStrategy 3 the default"

This reverts commit 60dd0eed538361490cbf29a1734e6cd8d21f794f.

5 years agoImprove tracker failure reason error
Matt Joiner [Mon, 13 Aug 2018 10:28:02 +0000 (20:28 +1000)]
Improve tracker failure reason error

5 years agocmd/tracker-announce: Add a port flag
Matt Joiner [Mon, 13 Aug 2018 10:27:42 +0000 (20:27 +1000)]
cmd/tracker-announce: Add a port flag

5 years agocmd/tracker-announce: Provide a http.Client for announces
Matt Joiner [Mon, 13 Aug 2018 10:27:16 +0000 (20:27 +1000)]
cmd/tracker-announce: Provide a http.Client for announces

5 years agocmd/tracker-announce: Was using empty AnnounceRequest
Matt Joiner [Mon, 13 Aug 2018 10:26:47 +0000 (20:26 +1000)]
cmd/tracker-announce: Was using empty AnnounceRequest

5 years agoIgnore unused trailing bytes in HTTP tracker responses
Matt Joiner [Mon, 13 Aug 2018 10:24:15 +0000 (20:24 +1000)]
Ignore unused trailing bytes in HTTP tracker responses