Commit graph

526 commits

Author SHA1 Message Date
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
0400bdec6d
Tag 5.4.1 2024-01-03 14:41:32 +00: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
0ff63d8a24
Fix progress bar color when checking files 2024-01-02 18:43:25 +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
89bbcd2a27
2/n reduce react re-renders 2023-12-19 23:05:57 +00:00
Igor Katson
e6ef3ff23f
1/n Use zustand to reduce re-renders 2023-12-17 19:27:22 +00:00
Igor Katson
3dc2e3eace
Tag 5.4.0 2023-12-17 14:43:12 +00:00
Igor Katson
fc28e18ffd
Try to increase limits on start 2023-12-17 13:01:59 +00:00
Igor Katson
a60738ff89
Fix color name for progress 2023-12-17 12:53:05 +00:00
Igor Katson
ccc19f9e1a
A widget to select files better when there are many 2023-12-17 12:46:08 +00:00
Igor Katson
ee307c11c5
Tiny UI tweaks 2023-12-17 10:34:35 +00:00
Igor Katson
55f3b23eed
Cors: more finegrained allowlist, make it simpler 2023-12-17 10:25:56 +00:00
Igor Katson
98ce0408f7
Limit colors and re-use tailwind config in desktop 2023-12-16 19:15:09 +00:00
Igor Katson
d8c356a008
spinner CSS tweak 2023-12-16 18:50:24 +00:00
Igor Katson
3bd1a4511f
UI: error messages wrap now 2023-12-16 18:44:31 +00:00
Igor Katson
f49346c151
Re-use the open file when logging to file 2023-12-16 18:40:37 +00:00
Igor Katson
6da08263be
Fix a compilation error for crates.io publish 2023-12-16 11:24:53 +00:00
Igor Katson
4606bd1fc0
Tag 5.3.0 2023-12-16 11:21:21 +00:00
Igor Katson
343978b7f8
webui-build 2023-12-16 11:17:23 +00:00
Igor Katson
1758af98a0
Ignore a test 2023-12-16 11:15:42 +00:00
Igor Katson
4f35120ff5
Update log lines for dark mode 2023-12-16 11:13:19 +00:00
Igor Katson
33c8b11c6e
2/n Fixing dark mode bugs 2023-12-16 11:09:51 +00:00
Igor Katson
8d886e0961
1/n Fixing dark mode 2023-12-16 10:23:24 +00:00
Artur Lozovski
f42e57d464 dark mode added 2023-12-15 17:55:28 +00:00
Artur Lozovski
5a0568bec9 add dark styles to torrentActions 2023-12-15 14:44:36 +00:00
Artur Lozovski
f1fc12e2ac style-dark: progressBar 2023-12-15 14:42:14 +00:00
Artur Lozovski
fb32b8f0bb change red to darker shade and whitespace-pre-line added to wrap text in alert box 2023-12-15 14:38:14 +00:00
Artur Lozovski
e06af3e570 add dark styles to modal 2023-12-15 14:30:49 +00:00
Artur Lozovski
ebe737bc99 added classes to torrentRow and globas.css for dark mode 2023-12-15 13:29:40 +00:00
Artur Lozovski
e053480183 classes for dark mode added to header 2023-12-15 09:53:08 +00:00
Igor Katson
f45195a745
Tag 5.2.0 2023-12-14 12:45:32 +00:00
Igor Katson
74ae3cfca2
Magnet input: keydown 2023-12-14 12:42:22 +00:00
Igor Katson
5a30b3fb0c
Fix a react console error 2023-12-14 12:01:02 +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
Arifcan Balta
911bf3a0d5
Chunk-piece length comparison fix (#55) 2023-12-13 17:53:27 +00:00
Igor Katson
dde91deeb0
Try to make it compile on freebsd (#53) 2023-12-12 11:02:19 +00:00
Igor Katson
29c2db1ab4
Remove symlinks in nodejs setup 2023-12-11 19:58:53 +00:00
Igor Katson
37f295cb95
Add a message when log channel is lagged 2023-12-09 14:03:42 +00:00
Igor Katson
1331145333
Fix Web UI logs in compiled server 2023-12-09 13:50:56 +00:00
Igor Katson
71a425ce66
Remove openssl compilation from Makefile 2023-12-09 12:40:11 +00:00
Igor Katson
98d6a6f054
Trying to optimize logs JS code 2023-12-09 12:25:14 +00:00