]> Sergey Matveev's repositories - btrtrc.git/log
btrtrc.git
3 years agoDefault to sqlite piece completion for dir if cgo enabled v1.28.0
Matt Joiner [Fri, 14 May 2021 05:51:26 +0000 (15:51 +1000)]
Default to sqlite piece completion for dir if cgo enabled

3 years agoFix sqlite piece completion
Matt Joiner [Fri, 14 May 2021 05:45:54 +0000 (15:45 +1000)]
Fix sqlite piece completion

3 years agoMove envpprof.Stop to main
Matt Joiner [Fri, 14 May 2021 03:39:01 +0000 (13:39 +1000)]
Move envpprof.Stop to main

3 years agoPossible fix for GitHub code scanning warning
Matt Joiner [Fri, 14 May 2021 00:22:21 +0000 (10:22 +1000)]
Possible fix for GitHub code scanning warning

3 years agoAdd CustomDirect BenchmarkMarkComplete sub-test
Matt Joiner [Wed, 12 May 2021 11:48:47 +0000 (21:48 +1000)]
Add CustomDirect BenchmarkMarkComplete sub-test

3 years agoFix race in webtorrent dial stats
Matt Joiner [Wed, 12 May 2021 04:26:45 +0000 (14:26 +1000)]
Fix race in webtorrent dial stats

3 years agocmd/torrent: Track download rate
Matt Joiner [Wed, 12 May 2021 04:26:23 +0000 (14:26 +1000)]
cmd/torrent: Track download rate

3 years agoRemove github.com/pkg/errors use in peerconn.go
Matt Joiner [Tue, 11 May 2021 07:14:02 +0000 (17:14 +1000)]
Remove github.com/pkg/errors use in peerconn.go

Was contributing to unexpected CPU use, and it's way out of date.

3 years agoTrack chunks received in nexted expvar.Map
Matt Joiner [Tue, 11 May 2021 07:13:03 +0000 (17:13 +1000)]
Track chunks received in nexted expvar.Map

3 years agoExpose SetSynchronous as an option
Matt Joiner [Tue, 11 May 2021 06:16:29 +0000 (16:16 +1000)]
Expose SetSynchronous as an option

3 years agoFix race in MarkNotComplete
Matt Joiner [Tue, 11 May 2021 02:46:13 +0000 (12:46 +1000)]
Fix race in MarkNotComplete

3 years agoDon't create blobs when reading
Matt Joiner [Tue, 11 May 2021 02:45:51 +0000 (12:45 +1000)]
Don't create blobs when reading

3 years agoTrack peers supporting extension in a nested expvar.Map
Matt Joiner [Tue, 11 May 2021 02:09:26 +0000 (12:09 +1000)]
Track peers supporting extension in a nested expvar.Map

3 years agoTidy up sqlite direct piece receiver name
Matt Joiner [Mon, 10 May 2021 07:05:37 +0000 (17:05 +1000)]
Tidy up sqlite direct piece receiver name

3 years agoRemove unused method
Matt Joiner [Mon, 10 May 2021 01:48:24 +0000 (11:48 +1000)]
Remove unused method

3 years agoRename Torrent.{add,delete}Connection
Matt Joiner [Mon, 10 May 2021 06:53:08 +0000 (16:53 +1000)]
Rename Torrent.{add,delete}Connection

3 years agoRemove separate postedKeepalives expvar
Matt Joiner [Mon, 10 May 2021 02:30:16 +0000 (12:30 +1000)]
Remove separate postedKeepalives expvar

3 years agoImprove some lock handling under panics
Matt Joiner [Sun, 9 May 2021 07:31:45 +0000 (17:31 +1000)]
Improve some lock handling under panics

3 years agoMerge branch 'sqlite-direct'
Matt Joiner [Fri, 14 May 2021 05:36:35 +0000 (15:36 +1000)]
Merge branch 'sqlite-direct'

3 years agoCreate SECURITY.md
Matt Joiner [Fri, 14 May 2021 00:17:19 +0000 (10:17 +1000)]
Create SECURITY.md

3 years agoAllows one to use Custom PieceCompletion (#486) v1.27.0
gitpubber [Sun, 9 May 2021 09:34:41 +0000 (15:04 +0530)]
Allows one to use Custom PieceCompletion (#486)

* Change ClientImpl to ClientImplCloser

We cannot close underlying Boltdb PieceCompletion if it is not closable

* Update file.go

3 years agoChange ClientImpl to ClientImplCloser
gitpubber [Fri, 7 May 2021 15:35:33 +0000 (21:05 +0530)]
Change ClientImpl to ClientImplCloser

We cannot close underlying Boltdb PieceCompletion if it is not closable

3 years agoReduce allocations in iterBitmapsDistinct
Matt Joiner [Sat, 8 May 2021 00:35:23 +0000 (10:35 +1000)]
Reduce allocations in iterBitmapsDistinct

3 years agoDon't set the page size by default
Matt Joiner [Thu, 6 May 2021 05:25:01 +0000 (15:25 +1000)]
Don't set the page size by default

3 years agoExpose a variety of blob cleanup styles
Matt Joiner [Thu, 6 May 2021 05:17:31 +0000 (15:17 +1000)]
Expose a variety of blob cleanup styles

3 years agoBenchmark different mmap sizes and journal modes
Matt Joiner [Thu, 6 May 2021 02:00:20 +0000 (12:00 +1000)]
Benchmark different mmap sizes and journal modes

3 years agoRework lots of option handling
Matt Joiner [Wed, 5 May 2021 11:36:36 +0000 (21:36 +1000)]
Rework lots of option handling

3 years agoRename new.go
Matt Joiner [Wed, 5 May 2021 05:55:08 +0000 (15:55 +1000)]
Rename new.go

3 years agoUse bench timer more effectively, and use Piece.WriteTo
Matt Joiner [Wed, 5 May 2021 05:53:43 +0000 (15:53 +1000)]
Use bench timer more effectively, and use Piece.WriteTo

3 years agoUse bytes.Reader instead of bytes.Buffer in a few places
Matt Joiner [Wed, 5 May 2021 05:48:57 +0000 (15:48 +1000)]
Use bytes.Reader instead of bytes.Buffer in a few places

3 years agoUse sync.Map in map piece completion
Matt Joiner [Wed, 5 May 2021 02:38:26 +0000 (12:38 +1000)]
Use sync.Map in map piece completion

3 years agoBig rename of files and types in storage
Matt Joiner [Wed, 5 May 2021 02:05:02 +0000 (12:05 +1000)]
Big rename of files and types in storage

3 years agoHandle expired blobs as they occur
Matt Joiner [Wed, 5 May 2021 01:47:39 +0000 (11:47 +1000)]
Handle expired blobs as they occur

3 years agoRework to use a pool of blobs
Matt Joiner [Wed, 5 May 2021 00:02:15 +0000 (10:02 +1000)]
Rework to use a pool of blobs

3 years agoGet benchmarks working
Matt Joiner [Tue, 4 May 2021 12:56:43 +0000 (22:56 +1000)]
Get benchmarks working

3 years agoImplement sqlite directly without using piece resources
Matt Joiner [Tue, 4 May 2021 09:51:42 +0000 (19:51 +1000)]
Implement sqlite directly without using piece resources

3 years agocmd/torrent: Ensure progress is emitted at consistent intervals
Matt Joiner [Tue, 4 May 2021 06:08:21 +0000 (16:08 +1000)]
cmd/torrent: Ensure progress is emitted at consistent intervals

3 years agocmd/torrent: Restore parsing of units for upload and download rates
Matt Joiner [Tue, 4 May 2021 06:00:22 +0000 (16:00 +1000)]
cmd/torrent: Restore parsing of units for upload and download rates

https://github.com/anacrolix/torrent/issues/447

3 years agoBig logging cleanup to improve experience from README v1.26.1
Matt Joiner [Tue, 4 May 2021 02:39:52 +0000 (12:39 +1000)]
Big logging cleanup to improve experience from README

3 years agopiece resource storage: Do sized puts for WriteAts if possible
Matt Joiner [Wed, 28 Apr 2021 11:18:01 +0000 (21:18 +1000)]
piece resource storage: Do sized puts for WriteAts if possible

3 years agoUse BenchmarkMarkComplete for non-sqlite storages too
Matt Joiner [Wed, 28 Apr 2021 04:46:47 +0000 (14:46 +1000)]
Use BenchmarkMarkComplete for non-sqlite storages too

3 years agogo get -u
Matt Joiner [Wed, 28 Apr 2021 04:32:57 +0000 (14:32 +1000)]
go get -u

3 years agoRemove GoDoc badge
Matt Joiner [Tue, 4 May 2021 02:43:50 +0000 (12:43 +1000)]
Remove GoDoc badge

It now redirects to pkg.go.dev anyway.

3 years agoUpdate cmd examples
Matt Joiner [Tue, 4 May 2021 02:26:13 +0000 (12:26 +1000)]
Update cmd examples

Remove references to godo which isn't really helpful anymore. Update the output from some of the commands.

3 years agoRedirect Gitter to Discussions
Matt Joiner [Tue, 4 May 2021 01:08:59 +0000 (11:08 +1000)]
Redirect Gitter to Discussions

3 years agoFix DeepSource anti-pattern v1.26.0
Matt Joiner [Wed, 24 Mar 2021 22:56:04 +0000 (09:56 +1100)]
Fix DeepSource anti-pattern

3 years agoMake tracker order in Metainfo.Magnet deterministic
Matt Joiner [Wed, 24 Mar 2021 22:51:49 +0000 (09:51 +1100)]
Make tracker order in Metainfo.Magnet deterministic

Should fix test failures in CI.

3 years agoUpdate deps v1.26.0-alpha.1
Matt Joiner [Thu, 11 Mar 2021 22:45:38 +0000 (09:45 +1100)]
Update deps

3 years agoFix dht Server Ping call v1.26.0-alpha
Matt Joiner [Thu, 11 Mar 2021 00:32:31 +0000 (11:32 +1100)]
Fix dht Server Ping call

3 years agoDon't bench with -race
Matt Joiner [Wed, 24 Feb 2021 02:48:05 +0000 (13:48 +1100)]
Don't bench with -race

3 years agoInclude webseed urls in MetaInfo.Magnet output
Matt Joiner [Wed, 24 Feb 2021 01:11:41 +0000 (12:11 +1100)]
Include webseed urls in MetaInfo.Magnet output

Fixes #469.

3 years agoImprove metainfo.MetaInfo.Magnet interface and add tests
Matt Joiner [Wed, 24 Feb 2021 01:03:16 +0000 (12:03 +1100)]
Improve metainfo.MetaInfo.Magnet interface and add tests

3 years agoPEX: impede full-meching in tracker-less swarms by adding a cooldown minute
Yaroslav Kolomiiets [Mon, 14 Dec 2020 16:04:45 +0000 (16:04 +0000)]
PEX: impede full-meching in tracker-less swarms by adding a cooldown minute

3 years agoAdd missing closeMu use in ReadConsecutiveChunks
Matt Joiner [Mon, 22 Feb 2021 05:39:21 +0000 (16:39 +1100)]
Add missing closeMu use in ReadConsecutiveChunks

3 years agoOnly write update bolt piece completion if the existing value differs
Matt Joiner [Mon, 22 Feb 2021 03:51:34 +0000 (14:51 +1100)]
Only write update bolt piece completion if the existing value differs

3 years agoReplace internal/tmproot with Testing.TB.TempDir
Matt Joiner [Mon, 22 Feb 2021 03:30:09 +0000 (14:30 +1100)]
Replace internal/tmproot with Testing.TB.TempDir

3 years agoMerge Sean-Der's webrtc/v3 update
Matt Joiner [Mon, 22 Feb 2021 00:22:49 +0000 (11:22 +1100)]
Merge Sean-Der's webrtc/v3 update

3 years agoComment and log change on torrentfs behaviour change
Matt Joiner [Sun, 21 Feb 2021 23:10:43 +0000 (10:10 +1100)]
Comment and log change on torrentfs behaviour change

3 years agoMerge branch 'fuse-email-issue'
Matt Joiner [Sun, 21 Feb 2021 23:05:32 +0000 (10:05 +1100)]
Merge branch 'fuse-email-issue'

3 years agogo mod tidy
Matt Joiner [Sun, 21 Feb 2021 23:01:56 +0000 (10:01 +1100)]
go mod tidy

3 years agoPull dht peer store interface
Matt Joiner [Sun, 21 Feb 2021 23:00:51 +0000 (10:00 +1100)]
Pull dht peer store interface

3 years agoUpgrade to pion/webrtc@v3
Sean DuBois [Sun, 21 Feb 2021 21:30:34 +0000 (13:30 -0800)]
Upgrade to pion/webrtc@v3

3 years agoAdd PeerStorer interface
Matt Joiner [Sun, 21 Feb 2021 06:17:57 +0000 (17:17 +1100)]
Add PeerStorer interface

3 years agoAdd ClientConfig.ConfigureAnacrolixDhtServer
Matt Joiner [Sat, 20 Feb 2021 11:16:54 +0000 (22:16 +1100)]
Add ClientConfig.ConfigureAnacrolixDhtServer

3 years agoClose all peer types when Torrent closed
Matt Joiner [Fri, 19 Feb 2021 01:58:20 +0000 (12:58 +1100)]
Close all peer types when Torrent closed

3 years agoCode comment
Matt Joiner [Fri, 19 Feb 2021 01:37:26 +0000 (12:37 +1100)]
Code comment

3 years agoCreate codeql-analysis.yml
Matt Joiner [Mon, 27 Jul 2020 23:00:53 +0000 (09:00 +1000)]
Create codeql-analysis.yml

3 years agoInclude webseed URLs in output of Torrent.Metainfo
Matt Joiner [Thu, 18 Feb 2021 03:37:06 +0000 (14:37 +1100)]
Include webseed URLs in output of Torrent.Metainfo

3 years agoTreat 404 responses from webseed peers as fatal
Matt Joiner [Thu, 18 Feb 2021 03:36:08 +0000 (14:36 +1100)]
Treat 404 responses from webseed peers as fatal

Fixes #464.

3 years agoAdd test case for #464
Matt Joiner [Thu, 18 Feb 2021 03:34:42 +0000 (14:34 +1100)]
Add test case for #464

3 years agoInstall godo
Matt Joiner [Mon, 15 Feb 2021 10:44:52 +0000 (21:44 +1100)]
Install godo

3 years agoRun torrentfs without race
Matt Joiner [Mon, 15 Feb 2021 10:44:35 +0000 (21:44 +1100)]
Run torrentfs without race

3 years agoAdd new debian torrent testdata file
Matt Joiner [Mon, 15 Feb 2021 05:12:58 +0000 (16:12 +1100)]
Add new debian torrent testdata file

3 years agoUse io.ReadFull in fs reads
Matt Joiner [Mon, 15 Feb 2021 04:53:32 +0000 (15:53 +1100)]
Use io.ReadFull in fs reads

3 years agofs/test.sh: Use godo for out of tree go run
Matt Joiner [Mon, 15 Feb 2021 04:45:07 +0000 (15:45 +1100)]
fs/test.sh: Use godo for out of tree go run

3 years agoRework fs/test.sh
Matt Joiner [Fri, 12 Feb 2021 08:21:28 +0000 (19:21 +1100)]
Rework fs/test.sh

Updates to use newer debian file, and operate in working directory. Temporary directory management should be done by the caller (such as in CI maybe).

3 years agoLimit conns per host across webseed clients v1.25.0
Matt Joiner [Tue, 9 Feb 2021 08:22:38 +0000 (19:22 +1100)]
Limit conns per host across webseed clients

3 years agoFix closing of webseed peers
Matt Joiner [Tue, 9 Feb 2021 08:21:54 +0000 (19:21 +1100)]
Fix closing of webseed peers

3 years agoBuff issue 465 test command
Matt Joiner [Tue, 9 Feb 2021 08:17:22 +0000 (19:17 +1100)]
Buff issue 465 test command

3 years agoAdd minimal reproducing code for issue 465
Matt Joiner [Tue, 9 Feb 2021 06:05:02 +0000 (17:05 +1100)]
Add minimal reproducing code for issue 465

From https://github.com/anacrolix/torrent/issues/465#issuecomment-774869977.

3 years agoFix panic in benchmark v1.24.0
Matt Joiner [Thu, 4 Feb 2021 23:01:33 +0000 (10:01 +1100)]
Fix panic in benchmark

3 years agoUse locks on piece per resource pieces to prevent races in reading incomplete data
Matt Joiner [Thu, 4 Feb 2021 07:42:43 +0000 (18:42 +1100)]
Use locks on piece per resource pieces to prevent races in reading incomplete data

3 years agoExpose mmap_size in sqlite storage, and change default to 8 MiB
Matt Joiner [Thu, 4 Feb 2021 07:29:34 +0000 (18:29 +1100)]
Expose mmap_size in sqlite storage, and change default to 8 MiB

3 years agoFix some go vet warnings
Matt Joiner [Wed, 3 Feb 2021 08:42:46 +0000 (19:42 +1100)]
Fix some go vet warnings

3 years agoFix Close race in sqlite storage when batch writes disabled
Matt Joiner [Wed, 3 Feb 2021 08:27:26 +0000 (19:27 +1100)]
Fix Close race in sqlite storage when batch writes disabled

3 years agoRevert "Fix stalls for responsive transfer tests"
Matt Joiner [Wed, 3 Feb 2021 07:55:54 +0000 (18:55 +1100)]
Revert "Fix stalls for responsive transfer tests"

This reverts commit d48c6ae6dc69b7ce23a109cc9ba401e6ab44d831.

3 years agoAdd batch writes cases to sqlite storage benchmarks
Matt Joiner [Wed, 3 Feb 2021 07:55:14 +0000 (18:55 +1100)]
Add batch writes cases to sqlite storage benchmarks

3 years agoUpdate deps v1.23.0
Matt Joiner [Mon, 1 Feb 2021 23:47:38 +0000 (10:47 +1100)]
Update deps

3 years agoFix for go<1.16
Matt Joiner [Mon, 1 Feb 2021 05:55:22 +0000 (16:55 +1100)]
Fix for go<1.16

3 years agoFix sqlite storage for numconns 1
Matt Joiner [Mon, 1 Feb 2021 04:47:28 +0000 (15:47 +1100)]
Fix sqlite storage for numconns 1

3 years agoFix stalls for responsive transfer tests
Matt Joiner [Mon, 1 Feb 2021 04:25:34 +0000 (15:25 +1100)]
Fix stalls for responsive transfer tests

Looks like there's a timing issue between marking things complete, and already having decided to read the data from incomplete chunks.

3 years agoSwitch to reading consecutive incomplete chunks
Matt Joiner [Mon, 1 Feb 2021 01:22:31 +0000 (12:22 +1100)]
Switch to reading consecutive incomplete chunks

This fixes a race where a sqlite conn isn't reserved for the read part of a MarkComplete operation after the write has already begun.

3 years agoAdd tests for numconns 2
Matt Joiner [Mon, 1 Feb 2021 00:33:56 +0000 (11:33 +1100)]
Add tests for numconns 2

3 years agoUse go1.16 release branch in CI
Matt Joiner [Sat, 30 Jan 2021 01:31:01 +0000 (12:31 +1100)]
Use go1.16 release branch in CI

3 years agofixed code quality issues using DeepSource
Shubhendra Singh Chauhan [Sat, 16 Jan 2021 10:59:36 +0000 (16:29 +0530)]
fixed code quality issues using DeepSource

* Added .deepsource.toml

* Removed empty default in select

* Removed unnecessary use of slice

* Fixed check for empty string

3 years agoUse iotest.TestReader
Matt Joiner [Fri, 29 Jan 2021 12:32:01 +0000 (23:32 +1100)]
Use iotest.TestReader

3 years agoSome deps got tagged
Matt Joiner [Fri, 29 Jan 2021 11:05:09 +0000 (22:05 +1100)]
Some deps got tagged

3 years agoUpdate crawshaw.io/sqlite v1.22.0
Matt Joiner [Fri, 29 Jan 2021 06:59:56 +0000 (17:59 +1100)]
Update crawshaw.io/sqlite

Now includes the fix for the pool race. I've removed the replace, the only thing left in the getlantern fork is the linking fix, and I forget when it's an issue.

3 years agoWe're not expecting chunks if we have no outstanding requests
Matt Joiner [Fri, 29 Jan 2021 05:14:08 +0000 (16:14 +1100)]
We're not expecting chunks if we have no outstanding requests

3 years agoSet not interested when we have no pending requests
Matt Joiner [Fri, 29 Jan 2021 05:13:46 +0000 (16:13 +1100)]
Set not interested when we have no pending requests