Commit graph

194 commits

Author SHA1 Message Date
Igor Katson
14e0c9d833
Remove duplicate ut_pex message 2024-08-28 10:20:58 +01:00
Igor Katson
9d1ef5c35c
Shorten ByteBuf trait bounds everywhere 2024-08-28 10:20:58 +01:00
Igor Katson
90bfb85bcc
Some cleanups for utpex 2024-08-28 10:20:45 +01:00
Ivan
5e09525dd5
Feeding peers from PEX added - PoC 2024-08-28 10:10:34 +01:00
Ivan
bbc951733f
PEX: Announce support and message definition 2024-08-28 10:06:16 +01:00
Igor Katson
c12fcd7902
Fix a rare deadlock 2024-08-25 15:43:13 +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
3469dfce93
Fix a new recent bug 2024-08-21 17:51:55 +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
ae606fac4a
Fix counter name 2024-08-21 12:23:31 +01:00
Igor Katson
0fdf6ad429
Counting peers on drop 2024-08-21 11:31:36 +01:00
Igor Katson
67afdb0aa5
Add a struct for session stats + bump the counters 2024-08-21 11:22:37 +01:00
Igor Katson
65feec3406
Fastresume CLI option 2024-08-20 21:47:08 +01:00
Igor Katson
29c46f2579
It fully works! 2024-08-20 21:22:56 +01:00
Igor Katson
2fee0ca8c2
flushing bitfield 2024-08-20 21:09:58 +01:00
Igor Katson
bc9e72df60
Use actual BitV and factory everywhere 2024-08-20 20:42:24 +01:00
Igor Katson
a55dfc6e0e
Simplify initial check code to only return have_pieces 2024-08-20 20:16:11 +01:00
Igor Katson
8135b31a5d
Use in chunk_tracker 2024-08-20 17:15:37 +01:00
Igor Katson
e0c459e9f5
Fix unchoke broken in previous PR 2024-08-19 16:51:50 +01:00
Igor Katson
8de27f812a
Proper bitfield handling 2024-08-19 16:29:32 +01:00
Igor Katson
3dcf43f448
Further e2e fixes for reliability 2024-08-19 16:02:11 +01:00
Igor Katson
e4aac7930f
make async-backtrace optional 2024-08-19 13:40:01 +01:00
Igor Katson
0cb92eb333
Notify for released pieces 2024-08-19 13:17:13 +01:00
Igor Katson
02eca15c70
Remove a spurious complicated function ".mark_chunk_request_cancelled" 2024-08-19 12:54:56 +01:00
Igor Katson
7cda2c9807
async_backtrace 2024-08-19 12:35:32 +01:00
Igor Katson
79e206d5a7
more tracing spans 2024-08-19 12:10:12 +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
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
55649e181a
untested support for send_metadata_piece 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
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
91f03cb81d
Merge pull request #158 from izderadicka/suppress_dead_code_warnings
Mark dead code explicitly
2024-08-02 09:00:33 +01:00
Ivan
e08821bff7 Mark dead code explicitly 2024-07-27 08:46:33 +02:00
Ivan
7e8935388c Use BlockingSpawner 2024-07-27 08:17:04 +02:00
Ivan
1c9aa8ca72 Fist naive attempt to improve streaming
at leat inform executor about blocking call
2024-07-20 20:03:42 +02:00
Igor Katson
ace4bed0c6
Folders and files are now deleted more comprehensively 2024-06-21 15:17:41 +01:00