Commit graph

91 commits

Author SHA1 Message Date
Igor Katson
82f167d50d
Removed the overly conservative check 2024-12-07 12:14:59 +00:00
Igor Katson
afca0fbbe3
Remove unnecessary initial_peers merging code 2024-12-07 12:06:06 +00:00
Igor Katson
e4845e2368
Add a clarifying comment 2024-12-07 11:51:58 +00:00
Igor Katson
0fabb453aa
Storing torrent name in ManagedTorrentShared 2024-12-06 12:57:26 +00:00
Igor Katson
0a92cf1d65
cleanup a couple unnecessary drop(g) calls 2024-12-06 12:37:53 +00:00
Igor Katson
5df342e442
Nothing: move a comment 2024-12-06 12:25:16 +00:00
Igor Katson
4c654a0631
Tiny optimisation for code size 2024-12-06 12:17:52 +00:00
Igor Katson
5f07872725
Docs for _start() 2024-12-06 12:14:34 +00:00
Igor Katson
38fec48879
Reorganize _start() a bit 2024-12-06 12:08:03 +00:00
Igor Katson
7ed037cba8
comments 2024-12-06 11:30:04 +00:00
Igor Katson
100b7116df
Split out TorrentMetadata 2024-12-05 23:12:46 +00:00
Igor Katson
e440f03970
spawn_peer_adder: Option<PeerStream> -> PeerStream 2024-12-05 22:05:04 +00:00
Igor Katson
8131ba0482
Store initial_peers in state 2024-12-05 21:47:37 +00:00
Igor Katson
25b309867b
Initial impl of up/down ratelimits 2024-11-18 17:34:50 +00:00
Igor Katson
990c5f866b
Disable upload: do not expose in default builds, move under a feature flag. 2024-10-03 09:07:19 +01:00
Igor Katson
fc7ae3bbe5
[Feature] option to disable upload 2024-08-28 18:02:25 +01:00
Igor Katson
9f798696ff
reduce noisy test logs 2024-08-28 17:44:46 +01:00
Igor Katson
6823490803
Fix persistence pause behavior 2024-08-23 18:47:33 +01:00
Igor Katson
c697809e50
Clear have_bitfield on error 2024-08-21 18:21:15 +01:00
Igor Katson
3067ad21d5
Cleanups 2024-08-21 16:20:46 +01:00
Igor Katson
ad5f62b9b9
Move session to shared state 2024-08-21 16:15:15 +01:00
Igor Katson
451debedbb
Renames 2024-08-21 16:12:20 +01:00
Igor Katson
b4512e4809
Move some fields into ManagedTorrentInfo 2024-08-21 16:06:16 +01:00
Igor Katson
ad7b59ea3c
Remove some args in start() function 2024-08-21 15:57:18 +01:00
Igor Katson
80f4d3b1b2
Remove ManagedTorrentBuilder 2024-08-21 15:51:58 +01:00
Igor Katson
67afdb0aa5
Add a struct for session stats + bump the counters 2024-08-21 11:22:37 +01:00
Igor Katson
bc9e72df60
Use actual BitV and factory everywhere 2024-08-20 20:42:24 +01:00
Igor Katson
d028e2e3c2
fix buggy "merge_two_streams" 2024-08-18 17:37:03 +01:00
Igor Katson
675aecf44b
More anyhow.context() 2024-08-18 17:20:59 +01:00
Igor Katson
726a5e14f9
Limit concurrency of torrent initialization 2024-08-15 18:55:46 +01:00
Igor Katson
f22814c77b
Postgres example storage 2024-08-15 13:31:56 +01:00
Igor Katson
d77d96bd48
Now saving torrent updates properly to the new db 2024-08-15 11:20:20 +01:00
Igor Katson
53d61d0428
fixing bugs 2024-08-14 12:14:57 +01:00
Igor Katson
55aeb07994
use byte::Bytes instead of ByteBufOwned to store torrent bytes 2024-08-13 06:43:52 +01:00
Igor Katson
fe7a1e09ba
Store torrent bytes in memory 2024-08-12 23:43:23 +01:00
Igor Katson
70dcb2e6cb
First pass to implement socks5 support 2024-08-08 00:46:39 +01:00
Igor Katson
ace4bed0c6
Folders and files are now deleted more comprehensively 2024-06-21 15:17:41 +01:00
Igor Katson
eafd274a0b --defer-writes-up-to 2024-05-03 20:24:39 +04:00
Igor Katson
d25309e358 Defer writes command line flag 2024-05-03 02:53:52 +04:00
Igor Katson
5027d8ccd1 All storage factories are generic now 2024-05-03 02:53:52 +04:00
Igor Katson
fd30ad9cbf Tweak everything for APIs to support everything while not changing too much 2024-05-02 12:29:46 +04:00
Igor Katson
aec1b94544 No sleeps, wait properly now 2024-05-02 12:29:46 +04:00
Igor Katson
f2ae2f67f4 Custom storage example 2024-05-02 12:29:46 +04:00
Igor Katson
dc137c075f Move to storage folder 2024-05-02 12:29:46 +04:00
Igor Katson
67c22c9313 It compiles now 2024-05-02 12:29:46 +04:00
Igor Katson
42bbf84ea5 Fixing up initialization to allow passing in custom storages 2024-05-02 12:29:46 +04:00
Igor Katson
1b49257019 Storages 2024-05-02 12:29:46 +04:00
Igor Katson
867785422c update a cuople error messages 2024-05-01 00:43:51 +04:00
Igor Katson
7e180c05b3 Fix the bugs 2024-05-01 00:43:51 +04:00
Igor Katson
d1c6a5b584 Streaming test 2024-05-01 00:43:51 +04:00