Commit graph

148 commits

Author SHA1 Message Date
Igor Katson
d5ddf4d294
Session is now properly cleaned up 2024-08-21 17:25:00 +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
c601b399f2
Workaround rustfmt bug in session.rs 2024-08-21 12:07:42 +01:00
Igor Katson
06e88c138f
Session speed estimator 2024-08-21 11:57:45 +01:00
Igor Katson
67afdb0aa5
Add a struct for session stats + bump the counters 2024-08-21 11:22:37 +01:00
Igor Katson
e11744cd63
Add fastresume session option 2024-08-20 21:31:52 +01:00
Igor Katson
bc9e72df60
Use actual BitV and factory everywhere 2024-08-20 20:42:24 +01:00
Igor Katson
ab2d73c2b3
Fix a bug in torrent deletion 2024-08-19 19:21:09 +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
3f1ad390be
Add session parent spans possibility 2024-08-18 15:01:12 +01:00
Igor Katson
726a5e14f9
Limit concurrency of torrent initialization 2024-08-15 18:55:46 +01:00
Igor Katson
473edf28dd
Hash-based API in addition to integer based 2024-08-15 16:02:45 +01:00
Igor Katson
2871c358e3
postgres session storage backend 2024-08-15 14:18:55 +01:00
Igor Katson
275b3b0185
Update desktop app to support new persistence config 2024-08-15 11:39:12 +01:00
Igor Katson
d77d96bd48
Now saving torrent updates properly to the new db 2024-08-15 11:20:20 +01:00
Igor Katson
f29dccf8bd
remove deprecated branch 2024-08-15 11:04:47 +01:00
Igor Katson
2154ddf33e
tweak shitty id handling - a bit better now 2024-08-15 10:57:44 +01:00
Igor Katson
83592ca866
Session persistence rewritten completely 2024-08-15 10:40:48 +01:00
Igor Katson
5384f8c9db
Fix the bug thanks to e2e test 2024-08-14 12:14:57 +01:00
Igor Katson
53d61d0428
fixing bugs 2024-08-14 12:14:57 +01:00
Igor Katson
c196c11860
trying to make tests work with new metadata 2024-08-14 12:14:57 +01:00
Igor Katson
c7ed475f54
Use bytes crate for zerocopy and memory re-use (#182)
* Use bytes. Not yet zerocopy everywhere but compiles

* Actually zerocopy

* Actually zerocopy

* Not actually storing the torrent on disk now
2024-08-14 12:08:46 +01:00
Igor Katson
1c1200cc2a
clippy 2024-08-13 19:14:41 +01:00
Igor Katson
a0483e67f8
Remove debugging test that was failing on windows 2024-08-13 19:13:20 +01:00
Igor Katson
d54b67d2dc
Make the /resolve_magnet HTTP endpoint return an actual torrent file, not info 2024-08-13 19:06:17 +01:00
Igor Katson
cd0f38f0fb
Stub for torrent_file_from_info_and_bytes 2024-08-13 15:51:04 +01:00
Igor Katson
e7c7543228
a tiny refactor 2024-08-13 06:52:43 +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
41a2cd58b3
Store torrent bytes 2024-08-12 23:24:11 +01:00
Igor Katson
5740d3ebe9
create InteralAddResult 2024-08-12 23:10:11 +01:00
Igor Katson
f2b28ddbe3
Fix #154 - desktop now can upload files properly 2024-08-12 19:53:00 +01:00
Igor Katson
70dcb2e6cb
First pass to implement socks5 support 2024-08-08 00:46:39 +01:00
Igor Katson
8c16239a0e
use reqwest client rather than global 2024-08-07 23:28:44 +01:00
Igor Katson
151933b403
remove .inspect_err() 2024-06-21 15:17:48 +01:00
Igor Katson
ace4bed0c6
Folders and files are now deleted more comprehensively 2024-06-21 15:17:41 +01:00
Igor Katson
f63e729da1
Fix magnet links 2024-05-17 23:57:25 +01:00
Igor Katson
b687a1882c
Dont attempt to initialize session persistence folder if its turned off 2024-05-17 18:40:13 +01:00
Igor Katson
c07ebbac25
Fix build 2024-05-03 18:20:28 +01:00
Igor Katson
eafd274a0b --defer-writes-up-to 2024-05-03 20:24:39 +04:00
Igor Katson
427f490a61 Clone storage factories... 2024-05-03 02:53:52 +04:00
Igor Katson
07a5b69a25 Hacked in mmap default 2024-05-03 02:53:52 +04:00
Igor Katson
6233cc9d12 better type_id for nested storages 2024-05-03 02:53:52 +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