Commit graph

318 commits

Author SHA1 Message Date
Igor Katson
a001bb8c97
Shorten Pin<Box to BoxFuture 2024-02-27 08:14:39 +00:00
Igor Katson
34f3ec6c29
Inline(never) more things for rqbit(bin) to compile faster 2024-02-26 23:08:47 +00:00
Igor Katson
f42007f436
This one makes it better for sure 2024-02-26 22:59:54 +00:00
Igor Katson
15d17355b5
Async http server. Even slower 2024-02-26 22:52:53 +00:00
Igor Katson
15c078619c
Compile times are even worse now 2024-02-26 22:41:36 +00:00
Igor Katson
18f22cf323
Simplify cancellation as peer_rx doesnt need a token no longer 2024-02-26 20:45:21 +00:00
Igor Katson
d3f017430b
Comment updates 2024-02-26 09:57:09 +00:00
Igor Katson
70c59834ba
Simplify the trait for tracker comms 2024-02-26 09:47:46 +00:00
Igor Katson
b30ee13388
Logging for UDP trackers 2024-02-26 09:42:06 +00:00
Igor Katson
e263441fb6
Better cancellation 2024-02-26 09:25:01 +00:00
Igor Katson
51dba8ab67
Remove unused field 2024-02-26 08:55:53 +00:00
Igor Katson
3a7207265f
Make force_tracker_interval be used again 2024-02-18 20:21:12 +00:00
Igor Katson
76b7d23149
Clippy 2024-02-18 20:16:18 +00:00
Igor Katson
f5ccb8632b
Cancellation... It compiles now at least with latest changes, but not sure if they work or are correct 2024-02-18 20:11:12 +00:00
Igor Katson
1582d16cc5
Fix unpause 2024-02-17 21:13:57 +00:00
Igor Katson
95769cca6a
Start calling trackers before going live 2024-02-17 11:14:40 +00:00
Igor Katson
8733538d83
Abstracting tracker comms 2024-02-17 10:51:09 +00:00
Igor Katson
6f3383050e
Implement ser/de for UDP tracker protocol 2024-02-11 12:12:37 +00:00
Igor Katson
5ff88dcad2
Merge pull request #76 from ikatson/fix-66
Fix for #66
2024-01-21 11:06:49 +00:00
Igor Katson
2a60ff2a7f
Remove "previously_requested_pieces"
In https://github.com/ikatson/rqbit/issues/66 from a posted stacktrace
it became clear that setting previously_requested_pieces may panic.

I found a place where it was not initialized - in "on_have" callback.

I wanted to fix that + make it less error-prone, however noticed that
previously_requested_pieces isn't used at all anyway, because its use
was removed during one of the recent refactorings.

As things seem to be working fine without it, just removed it to simplify
code.
2024-01-21 10:58:59 +00:00
Igor Katson
c8189de3d2
Merge pull request #72 from jabedude/bep52-magnet-support
Add support for BTv2 magnet links
2024-01-08 11:27:27 +00:00
Joshua Abraham
0836b651a7 Add support for BTv2 magnet links 2024-01-07 20:57:10 -06:00
Igor Katson
b289f1eeaa
Fix file selection window on Windows that didnt split file with proper separator 2024-01-03 14:36:16 +00:00
Igor Katson
b808382169
Fix a bug when remarking already have pieces broken 2024-01-02 18:52:00 +00:00
Igor Katson
8ee98548f5
A tiny optimisation to not memcpy the buffer as often if we have many messages already buffered 2024-01-02 18:36:07 +00:00
Igor Katson
d5d98aff60
Extract ReadBuf logic into a separate struct 2024-01-02 18:36:07 +00:00
Igor Katson
09252c0397
Remove "read_one" macro 2024-01-02 18:36:07 +00:00
Igor Katson
dfdb6b5fae
Do not ignore errors in reserve_next_needed_piece() 2024-01-02 18:16:16 +00:00
Igor Katson
8cdf44c4fd
Make final stealing less aggressive 2023-12-30 18:27:19 -05:00
Igor Katson
5d4ffae6de
When stealing pieces, only steal from slower peers 2023-12-30 18:27:19 -05:00
Igor Katson
1e525eb91e
Move per-peer piece stats into methods 2023-12-30 18:27:19 -05:00
Igor Katson
fc28e18ffd
Try to increase limits on start 2023-12-17 13:01:59 +00:00
Igor Katson
55f3b23eed
Cors: more finegrained allowlist, make it simpler 2023-12-17 10:25:56 +00:00
Igor Katson
f49346c151
Re-use the open file when logging to file 2023-12-16 18:40:37 +00:00
Igor Katson
1758af98a0
Ignore a test 2023-12-16 11:15:42 +00:00
Igor Katson
325855ba56
Fix only files not working properly (#59)
* 1/n fixing only files - tracking stats better

* 2/n proper tracking of stats when only certain files selected
2023-12-14 11:58:09 +00:00
Igor Katson
50fc7f2f01
Rewrite all styles to tailwind CSS from Bootstrap by @arccik (#58)
* add tailwindcss

* add header component with logo and add torrent buttons

* remove bootstrap from few files replace it with tailwindcss classes, add card which diplay all nessesarry information about torrent and current state

* Add modal component and reorganize components folder

* add useModal hook to render modal though react portal, remove UrlPromptModal and replace it with useModal.

* add taliwindcss to Desctop app

* removed bootstrap from deleteTorrentModal replace it with useModal

* replacing bootstrap with useModal

* saving

* Saving

* Header and cards now look good

* Modals still broken...

* still doesnt work

* Finally it scrolls

* Continuing to fix bugs

* Continuing to fix bugs

* Aler

* Getting better

* Desktop doesnt work with tailwind somehow

* Desktop now works with tailwind

* Styles fully work

* (De)select all buttons

* fix alert styles

* Animate progress bar

* Progress bar + error colors

* Fix error message

* Torrent status icon (#56)

* add statusIcon component to display icon of the torrent status

* change props name and remove isDownloading variable

* Tweak styles for icon

* Tweak styles

* Update styles

---------

Co-authored-by: Artur Lozovski <arccik@gmail.com>
2023-12-14 10:37:29 +00:00
Igor Katson
37f295cb95
Add a message when log channel is lagged 2023-12-09 14:03:42 +00:00
Igor Katson
98d6a6f054
Trying to optimize logs JS code 2023-12-09 12:25:14 +00:00
Igor Katson
2017c5ec94
Add an HTTP API endpoint + UI widgets to stream logs (#49)
* Added JSON logs to Desktop

* Move logging config into librqbit for reuse

* Log printer now available in both Desktop and Web UI

* Fix JS type error
2023-12-09 00:26:14 +00:00
Igor Katson
9385524a1a
Desktop: button to show a modal with logs (#48)
* Add an endpoint to stream logs /stream_logs
* Display logs in desktop app
* UI component to stream logs
2023-12-08 19:47:48 +00:00
Igor Katson
0751dbc5fc
Fix a bug that made it impossible to add torrents in desktop 2023-12-08 09:41:54 +00:00
Igor Katson
25ca003b44
Show webui version from server 2023-12-07 12:19:35 +00:00
Igor Katson
bed7433d8e
Use tokio_util::CancellationToken everywhere 2023-12-07 10:22:17 +00:00
Igor Katson
53868ad45e
Desktop state persistence 2023-12-07 00:13:11 +00:00
Igor Katson
d258a9afe2
Processing cancel messages 2023-12-06 23:25:52 +00:00
Igor Katson
9cbe16b387
settings dialog works now and reloads the session properly 2023-12-06 23:18:06 +00:00
Igor Katson
a3475784e9
Initial commit for desktop configuration. Broken now 2023-12-06 14:30:32 +00:00
Igor Katson
2d43f41664
Desktop: run HTTP API, show version 2023-12-06 12:14:26 +00:00
Igor Katson
3a69f04782
Shorten a log line 2023-12-06 11:50:36 +00:00