Commit graph

161 commits

Author SHA1 Message Date
Misaka
f184e7f5bf Add support for adding custom trackers 2024-09-24 21:55:02 +08:00
Igor Katson
b3263c24d3
fixed span.enter in session 2024-09-15 21:57:50 +01:00
Igor Katson
dedee2ef08
Watching works fine 2024-09-13 12:58:09 +01:00
Igor Katson
a73f921c5f
one line anyhow error formatting 2024-09-13 12:36:32 +01:00
Igor Katson
00daae97ed
Reorder removal so that mmap is removed before storage 2024-09-13 00:20:37 +01:00
Igor Katson
d6b1c47d45
Add #[track_caller] to all spawns so that tokio-console works (if enabled) 2024-08-29 10:30:06 +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
bf9d75e748
Graceful shutdown 2024-08-26 18:25:22 +01:00
Igor Katson
0c06601b34
Fix a broken test on Windows 2024-08-23 19:37:31 +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
d1f6a57e54
Remove bad log message 2024-08-21 17:42:19 +01:00
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