Commit Graph

2713 Commits

Author SHA1 Message Date
Matt Joiner 133cc17c00 Some peerImpl observations 2021-01-04 15:51:23 +11:00
Matt Joiner 1e9d382af9 Reinstate cmd/announce announce subcommand 2021-01-04 13:37:44 +11:00
Matt Joiner be639852e3 mse: Optimize allocations receiving handshakes 2021-01-04 11:34:04 +11:00
Matt Joiner 176ba51313 Add benchmark for receiving handshakes with large skey counts 2021-01-04 11:33:46 +11:00
Matt Joiner 73823ee61d Add mse.ReceiveHandshakeEx 2021-01-04 10:49:28 +11:00
Matt Joiner ae9ad721f2 Upgrade github.com/frankban/quicktest 2021-01-04 10:39:28 +11:00
Matt Joiner 29cc20ede9 Fix "none" event for WebTorrent announces 2020-12-30 11:43:48 +11:00
Matt Joiner 6e43db6a89 Document ClientConfig.DisableAcceptRateLimiting 2020-12-21 19:12:50 +11:00
Matt Joiner 28cab41400 Merge branch 'v1.19'
* v1.19:
  Further fixes to webseed path encoding
  Update README.md
  Move request strategy doc comments onto their public functions
  Add deprecated ParseMagnetURI
2020-12-21 19:12:40 +11:00
Matt Joiner 41721f025d Further fixes to webseed path encoding 2020-12-21 12:24:24 +11:00
Matt Joiner aea8e1dfd0 Update README.md
Add Console 32 mention

(cherry picked from commit f3d3fd3724)
2020-12-21 10:18:00 +11:00
Matt Joiner ba68b56715 Move request strategy doc comments onto their public functions
(cherry picked from commit 8c059ae158)
2020-12-21 10:18:00 +11:00
Matt Joiner 0013035c93 Add deprecated ParseMagnetURI 2020-12-21 10:16:08 +11:00
Matt Joiner f3d3fd3724
Update README.md
Add Console 32 mention
2020-12-21 10:04:44 +11:00
Matt Joiner b2fd53f4ce Generalize internal/string-limiter Key type 2020-12-21 09:39:02 +11:00
Matt Joiner b67ccab7f2 Pass trackerScraper context to announces
This will cancel announces for Closed Torrents and let them move more quickly to announcing the stopped event. Spotted by @hwh33.
2020-12-21 09:29:20 +11:00
Matt Joiner 8c059ae158 Move request strategy doc comments onto their public functions 2020-12-19 14:43:21 +11:00
Matt Joiner ddd03362f8 Factor out internal/string_limiter 2020-12-17 12:22:02 +11:00
Matt Joiner d713aaf280 Rework active announce limiter to reduce contention 2020-12-15 15:29:45 +11:00
Matt Joiner de964db3c2 Don't send keepalives if a connection isn't useful to us
This might help break the situation where anacrolix/torrent Clients that are connected to each other never release a connection until there's new connections that look more promising.
2020-12-10 11:13:45 +11:00
Aranjedeath 8d27c02962 Update metainfo.go
delete "yoloham" so that is no longer the default comment string on torrents made without a comment specified. Should resolve https://github.com/anacrolix/torrent/issues/342
2020-12-10 10:12:33 +11:00
Matt Joiner c81da2d5ee Strictly adher to tracker announce response intervals if a torrent is private 2020-12-09 22:36:57 +11:00
Matt Joiner 65db2436fd cmd/torrent: Add spew-bencoding command 2020-12-09 20:01:53 +11:00
Matt Joiner 143bf42f5e cmd/torrent: Fix download command default flags 2020-12-09 20:01:33 +11:00
Matt Joiner 846fa3f1f6 Log announce return 2020-12-09 20:01:05 +11:00
Matt Joiner e67fe7ddca cmd/torrent: Add file pick flag 2020-12-09 20:00:42 +11:00
Matt Joiner c0db7e1c26 Update github.com/anacrolix/dht/v2 2020-12-09 19:59:38 +11:00
Matt Joiner 3178691f15 cmd/torrent: Use alexflint/go-arg for argument parsing
Also add list-files command to test it out.
2020-12-09 16:18:54 +11:00
Matt Joiner 29736f5153 Update required go version
I believe 1.15 is required for testing.T.TempDir.
2020-11-30 14:26:12 +11:00
Matt Joiner 388e6899a1 piece resource storage: Delete incomplete chunks concurrently after writing complete piece 2020-11-21 13:44:23 +11:00
Matt Joiner b35c204238 Use ConsecutiveChunkWriter in MarkComplete for piece resource storage if available 2020-11-21 13:44:23 +11:00
Matt Joiner 99ddad31c9 Track piece marking state separately 2020-11-21 13:44:23 +11:00
Matt Joiner 41ef267c1b sqlite storage: Ensure that chunks are consecutive 2020-11-21 13:44:23 +11:00
pataquets a7fcca7bc6 Readme: downstream projects info. 2020-11-19 07:40:13 +11:00
Matt Joiner 8ef37cb2e6 sqlite storage: Remove num batched write queries log message 2020-11-16 16:37:11 +11:00
Matt Joiner d84367c9a6 Update to race fixes in filecache and sqlite 2020-11-16 16:37:11 +11:00
Matt Joiner 258585fd8b sqlite storage: Buffer write requests 2020-11-16 16:37:11 +11:00
Matt Joiner b0ebc856d9 sqlite storage: Add some expvars 2020-11-16 16:37:11 +11:00
Matt Joiner e65fac26ac sqlite storage: Add error return from withConn 2020-11-16 16:37:11 +11:00
Matt Joiner 7afa4a2de4 Fix panic in when bbolt storage has Closed 2020-11-16 16:37:11 +11:00
Matt Joiner 6cceb5749d Mark piece complete without Client lock 2020-11-16 16:37:11 +11:00
Matt Joiner 0d40c4bac2 Read peer request data without Client lock 2020-11-16 16:37:11 +11:00
Matt Joiner b020b8c2b6 Add support for the x.pe magnet link parameter 2020-11-16 16:37:11 +11:00
Yaroslav Kolomiiets 71b9718347 optimise PEX by avoiding intermediate storage while preparing PEX messages 2020-11-16 15:59:32 +11:00
Yaroslav Kolomiiets 0c1a506e04 optimise generation of the initial PEX 2020-11-12 22:25:17 +11:00
Yaroslav Kolomiiets 94055287b0 simplify pexMsgFactory 2020-11-12 22:25:17 +11:00
Yaroslav Kolomiiets ebdfae97a2 add test covering a recently fixed regression in initial PEX 2020-11-12 22:25:17 +11:00
Yaroslav Kolomiiets 28b6c93d6e Fix excessive logging from mmap-backed storage (anacrolix/torrent#436) 2020-11-12 08:57:42 +11:00
Matt Joiner 493ee9dfd1 Implement fmt.Formatter for metainfo.Hash
It's so easy to make mistakes by specifying %x when printing these.
2020-11-11 15:31:55 +11:00
Matt Joiner 6b5da26d38 Improve cmd/tracker-announce
Add -tracker flag, support specifying infohashes directly, spew announce responses so they're more readable.
2020-11-11 15:30:53 +11:00