Commit Graph

2742 Commits

Author SHA1 Message Date
Matt Joiner e5d21dbf34 Don't create blobs when reading 2021-05-14 15:41:23 +10:00
Matt Joiner ee572c5822 Track peers supporting extension in a nested expvar.Map 2021-05-14 15:41:14 +10:00
Matt Joiner b151514154 Tidy up sqlite direct piece receiver name 2021-05-14 15:40:59 +10:00
Matt Joiner 9feb85d0d1 Remove unused method 2021-05-14 15:40:38 +10:00
Matt Joiner 47284cf426 Rename Torrent.{add,delete}Connection 2021-05-14 15:39:01 +10:00
Matt Joiner 1080c837b9 Remove separate postedKeepalives expvar 2021-05-14 15:38:38 +10:00
Matt Joiner 4ab20f60b6 Improve some lock handling under panics 2021-05-14 15:36:53 +10:00
Matt Joiner 627b75c8b4 Merge branch 'sqlite-direct' 2021-05-14 15:36:35 +10:00
Matt Joiner ef75fa47f8
Create SECURITY.md 2021-05-14 10:17:19 +10:00
gitpubber b8e1c95399
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
2021-05-09 19:34:41 +10:00
gitpubber 5e53f35b72 Change ClientImpl to ClientImplCloser
We cannot close underlying Boltdb PieceCompletion if it is not closable
2021-05-09 11:04:43 +10:00
Matt Joiner 95d72a452a Reduce allocations in iterBitmapsDistinct 2021-05-08 10:35:23 +10:00
Matt Joiner 8dcc52ccf9 Don't set the page size by default 2021-05-06 15:25:01 +10:00
Matt Joiner 96574468c5 Expose a variety of blob cleanup styles 2021-05-06 15:17:31 +10:00
Matt Joiner abe003b6b3 Benchmark different mmap sizes and journal modes 2021-05-06 12:00:20 +10:00
Matt Joiner 20c00dedc0 Rework lots of option handling 2021-05-05 21:36:36 +10:00
Matt Joiner acfe0ba87e Rename new.go 2021-05-05 15:55:08 +10:00
Matt Joiner b583fe3d47 Use bench timer more effectively, and use Piece.WriteTo 2021-05-05 15:53:43 +10:00
Matt Joiner 9ded7e7e87 Use bytes.Reader instead of bytes.Buffer in a few places 2021-05-05 15:48:57 +10:00
Matt Joiner c3768da38c Use sync.Map in map piece completion 2021-05-05 12:38:26 +10:00
Matt Joiner cf8bd49abe Big rename of files and types in storage 2021-05-05 12:05:02 +10:00
Matt Joiner 745a34b43e Handle expired blobs as they occur 2021-05-05 11:47:39 +10:00
Matt Joiner 675a0ab0dc Rework to use a pool of blobs 2021-05-05 10:02:15 +10:00
Matt Joiner 855144212c Get benchmarks working 2021-05-04 22:56:43 +10:00
Matt Joiner afea28091f Implement sqlite directly without using piece resources 2021-05-04 19:51:42 +10:00
Matt Joiner 8706d326ba cmd/torrent: Ensure progress is emitted at consistent intervals 2021-05-04 16:08:21 +10:00
Matt Joiner bb4fc82d4b cmd/torrent: Restore parsing of units for upload and download rates
https://github.com/anacrolix/torrent/issues/447
2021-05-04 16:00:22 +10:00
Matt Joiner 305ba51dc2 Big logging cleanup to improve experience from README 2021-05-04 12:44:51 +10:00
Matt Joiner 256101768e piece resource storage: Do sized puts for WriteAts if possible 2021-05-04 12:44:51 +10:00
Matt Joiner 0021c2a70c Use BenchmarkMarkComplete for non-sqlite storages too 2021-05-04 12:44:51 +10:00
Matt Joiner 1c971078e9 go get -u 2021-05-04 12:44:51 +10:00
Matt Joiner cd943594b2
Remove GoDoc badge
It now redirects to pkg.go.dev anyway.
2021-05-04 12:43:50 +10:00
Matt Joiner 01b7c24177
Update cmd examples
Remove references to godo which isn't really helpful anymore. Update the output from some of the commands.
2021-05-04 12:26:13 +10:00
Matt Joiner 3b75b0b451
Redirect Gitter to Discussions 2021-05-04 11:08:59 +10:00
Matt Joiner 615ac41ae3 Fix DeepSource anti-pattern 2021-03-25 09:56:04 +11:00
Matt Joiner 80cfe96c8b Make tracker order in Metainfo.Magnet deterministic
Should fix test failures in CI.
2021-03-25 09:51:49 +11:00
Matt Joiner b4fd8ff1b9 Update deps 2021-03-12 09:45:38 +11:00
Matt Joiner 151387d1b0 Fix dht Server Ping call 2021-03-11 11:32:31 +11:00
Matt Joiner 693c30dd88 Don't bench with -race 2021-02-24 13:48:05 +11:00
Matt Joiner a22c1334c6 Include webseed urls in MetaInfo.Magnet output
Fixes #469.
2021-02-24 12:11:47 +11:00
Matt Joiner 35464677ef Improve metainfo.MetaInfo.Magnet interface and add tests 2021-02-24 12:11:47 +11:00
Yaroslav Kolomiiets d8d71addfc PEX: impede full-meching in tracker-less swarms by adding a cooldown minute 2021-02-24 08:29:18 +11:00
Matt Joiner f00f513706 Add missing closeMu use in ReadConsecutiveChunks 2021-02-22 16:39:21 +11:00
Matt Joiner ac05b69e11 Only write update bolt piece completion if the existing value differs 2021-02-22 14:51:34 +11:00
Matt Joiner 7f7c59d52e Replace internal/tmproot with Testing.TB.TempDir 2021-02-22 14:30:09 +11:00
Matt Joiner 91454b65fa Merge Sean-Der's webrtc/v3 update 2021-02-22 11:22:49 +11:00
Matt Joiner cbdc2b8263 Comment and log change on torrentfs behaviour change 2021-02-22 10:10:43 +11:00
Matt Joiner 4bb2233b46 Merge branch 'fuse-email-issue' 2021-02-22 10:05:32 +11:00
Matt Joiner f959d32cef go mod tidy 2021-02-22 10:01:56 +11:00
Matt Joiner ea8d5ff1ac Pull dht peer store interface 2021-02-22 10:00:51 +11:00