Commit graph

77 commits

Author SHA1 Message Date
Igor Katson
d8538af25d
[2/n] HUGE REFACTOR to suppor multiple states. Incomplete, broken 2023-11-24 12:44:36 +00:00
Igor Katson
739666ff88
HUGE REFACTOR to suppor multiple states. Incomplete, broken 2023-11-24 09:30:21 +00:00
Igor Katson
cc1ef9d0e4
Create ManagedTorrent struct 2023-11-23 17:14:08 +00:00
Igor Katson
6f93fed360
Fixed a counter bug 2023-11-20 14:22:42 +00:00
Igor Katson
123859328f
Remove old slow peer stats computation 2023-11-20 01:19:24 +00:00
Igor Katson
0c89ee9248
Add parameter with_peers to stats_snapshot while its slow 2023-11-19 23:11:11 +00:00
Igor Katson
48a14823fa
Changed log to tracing 2023-11-19 13:05:42 +00:00
Cyril Plisko
671b636f47 clippy::unnecessary_mut_passed 2023-08-08 11:13:07 +03:00
Cyril Plisko
6b72d18a7b clippy::needless_pass_by_ref_mut 2023-08-08 11:10:10 +03:00
Igor Katson
e1a3f86a24
Try to workaround #17 - windows not letting to open the file while rqbit has it 2023-07-10 12:18:08 +01:00
Igor Katson
a800048b7e
Added --exit-on-download option, only works without the server so far 2023-07-10 11:26:09 +01:00
Igor Katson
6968a4e449
Cargo clippy: fix the majority of errors 2022-12-08 20:20:23 +00:00
Igor Katson
9e8f235cb4
Add read/write timeouts and avoid stuck peers 2022-12-04 14:51:48 +00:00
Igor Katson
967a06a196
Enhance the HTTP API with more detail. 2021-10-23 10:06:28 +01:00
Igor Katson
3a64254971 Fix a couple bugs.
1. Bug one - last_piece_id when only_files is present.
2. Bug two - do not ensure_file_length for files we don't need.
2021-10-18 16:16:42 +01:00
Igor Katson
6bd518676d Truncate files at the start to required length 2021-10-16 12:51:17 +01:00
Igor Katson
3b8c4e053f Speed computation now better fits torrent with large pieces 2021-10-16 00:13:58 +01:00
Igor Katson
99208800f4 Initial check to use block_in_place 2021-10-10 10:58:09 +01:00
Igor Katson
19a606e465 Add LICENSE and README 2021-09-29 15:25:47 +01:00
Igor Katson
b301b159da Fix a bug 2021-07-31 13:13:04 +01:00
Igor Katson
bd0df49591 Nothing, small cleanups 2021-07-16 13:58:10 +01:00
Igor Katson
65d2e5b87f Nothing 2021-07-14 13:42:42 +01:00
Igor Katson
98dff76c40 DHT stats in HTTP API 2021-07-14 13:40:56 +01:00
Igor Katson
7e4ed79863 Nothing 2021-07-13 16:59:31 +01:00
Igor Katson
9e3e3a27ff Nothing much 2021-07-13 14:59:44 +01:00
Igor Katson
6eef3b9b66 A small refactor 2021-07-12 21:59:08 +01:00
Igor Katson
c401b79bd3 Make HTTP API track multiple torrents 2021-07-08 00:09:00 +01:00
Igor Katson
4f07b0f785 Remove some trait bounds 2021-07-04 18:01:58 +01:00
Igor Katson
44c760bcc2 Nothing 2021-07-04 14:38:44 +01:00
Igor Katson
60c0c73005 Nothing 2021-07-04 12:11:02 +01:00
Igor Katson
64b1e47c77 Add a semaphore around peers 2021-07-04 11:36:16 +01:00
Igor Katson
9472d66bf9 Update visiibilty 2021-07-04 11:05:20 +01:00
Igor Katson
ad867e8e3c Move everything to workspaces 2021-07-03 19:10:59 +01:00
Igor Katson
487ff50bd7 Clippy 2021-07-03 15:52:39 +01:00
Igor Katson
0e80ad3254 Deentangled classes a bit 2021-07-03 12:44:21 +01:00
Igor Katson
85e33741b7 Deentangled classes a bit 2021-07-03 12:40:59 +01:00
Igor Katson
9038630622 Trying to make torrent manager not depend on the whole metainfo 2021-07-03 09:13:09 +01:00
Igor Katson
d722f0edcb Remove all linter warnings 2021-07-02 10:21:19 +01:00
Igor Katson
e666f063ff Can decode extended messages now 2021-07-02 01:38:07 +01:00
Igor Katson
5f60f9e1b4 Make a serde bencode serializer 2021-07-01 23:37:57 +01:00
Igor Katson
5942e6a9d5 Updates 2021-07-01 19:17:44 +01:00
Igor Katson
4b6ed36927 De-entangle speed estimator from complex objects 2021-07-01 10:07:12 +01:00
Igor Katson
47966e094c Add speed estimator 2021-06-30 23:26:22 +01:00
Igor Katson
c1f34a6599 Just messing around with Rust typing 2021-06-30 18:42:16 +01:00
Igor Katson
a3e84e4a99 Add http api for debugging 2021-06-30 10:14:33 +01:00
Igor Katson
1cb7a7bbc6 Enable elapsed stats calculation and slow piece stealing 2021-06-30 00:32:38 +01:00
Igor Katson
2fc225cfa2 Add tracker refresh interval parameter 2021-06-29 00:17:10 +01:00
Igor Katson
c2affa8865 Nothing much 2021-06-28 22:48:14 +01:00
Igor Katson
b26af687b7 Check the chunk before uploading 2021-06-28 22:21:21 +01:00
Igor Katson
df282ae9d8 Dude this is like production ready! 2021-06-28 21:06:00 +01:00