Commit graph

104 commits

Author SHA1 Message Date
Igor Katson
0ebd4aa128 Force set file length on stream 2024-05-01 00:43:51 +04:00
Igor Katson
6a9578cc0b Fix a bug 2024-05-01 00:43:51 +04:00
Igor Katson
867785422c update a cuople error messages 2024-05-01 00:43:51 +04:00
Igor Katson
82f8b0932c Patch in some changes from another branch 2024-05-01 00:43:51 +04:00
Igor Katson
9474a6d52e Works pretty well now! 2024-05-01 00:43:51 +04:00
Igor Katson
ffc662e370 Less spammy log message 2024-05-01 00:43:51 +04:00
Igor Katson
5ffe2d59b7 Fix streaming logic 2024-05-01 00:43:51 +04:00
Igor Katson
0a895c5b9c Update streaming if checks 2024-05-01 00:43:51 +04:00
Igor Katson
f0788f2c4a Works fine now finally 2024-05-01 00:43:51 +04:00
Igor Katson
7e180c05b3 Fix the bugs 2024-05-01 00:43:51 +04:00
Igor Katson
d1c6a5b584 Streaming test 2024-05-01 00:43:51 +04:00
Igor Katson
10974888fa Streaming test 2024-05-01 00:43:51 +04:00
Igor Katson
dad127e0ea Do not reopen files back and forth, less bugs 2024-05-01 00:43:51 +04:00
Igor Katson
9590df1122
Fix a bug in stealing code 2024-04-29 12:01:31 +01:00
Igor Katson
3d46d7cb97
Fix clippy lints related to recent bug 2024-04-24 14:19:04 +01:00
Igor Katson
2a4d9a85d5 Download files in filename priority by default 2024-04-15 23:41:47 +04:00
Igor Katson
e03600c463 Add file priorities. 2024-04-15 23:41:47 +04:00
Igor Katson
0230550ed3 Fix fetched bytes computation to not account for stolen bytes. 2024-04-07 22:45:47 +01:00
Igor Katson
cdbd91b13b Stats on steals 2024-04-07 22:45:47 +01:00
Igor Katson
6a23f311e1 Send cancellations on steal 2024-04-07 22:45:47 +01:00
Igor Katson
5eb01ac226
Ability to change the list of files at any time, including through UI (#115)
* Now can update the list of files without pausing/unpausing

* Shrink a few functions

* Reopen write when updating files

* Todos

* opened_file abstraction

* iter_pieces_within iterator

* Simplify iter_pieces_within

* Simplify iter_pieces_within

* Add "iter_file_details"

* temporarily broken: readonly by default

* Live torrent - reopen files

* Reopen files after changing the list

* Now reopening files read only when they are completed

* Fix a bug in opened_file.rs

* update todos

* update help

* Reconnect all peers that are idling

* Add a couple fields to OpenedFile

* Add a couple fields to OpenedFile

* Small cleanups - use the new iterator where possible

* size_of_piece_in_file function

* Updating have

* Include file progress

* Almost nothing

* ugly progress bars

* bad UI, saving

* its not so bad

* Works now

* update progress bar a bit

* Reopen read-only on pause

* Zero bytes isnt too bad! Doesnt break anything

* fix per file progress bars

* progress bar not as ugly anymore?

* ui tweaks

* fix a react bug

* TODO.md update

* Fix js + TODOs

* Compute per-file progress on init

* Fix stats updating live

* Nothing

* Nothing

* cleanup ui a bit

* Nothing

* Final fixes

* Trying to fix rust 1.73

* Sorting filenames

* remove unnecessary indentation

* Remove unnecessary comment
2024-04-06 09:20:03 +01:00
Igor Katson
dd53eda662 Fatal error impossible after pause 2024-03-30 20:46:29 +00:00
Igor Katson
51d1a0b0c7 Jeez... 2024-03-30 20:46:29 +00:00
Igor Katson
efcffdd072 Well, it doesnt crash at least 2024-03-30 20:46:29 +00:00
Igor Katson
2972b0c87b Remove a redundant method 2024-03-30 20:22:04 +00:00
Igor Katson
b42649a524 Remove a couple unnecessary todos 2024-03-30 20:22:04 +00:00
Igor Katson
3e2fac81b1 Trying to check / simplify / improve math 2024-03-30 20:22:04 +00:00
Igor Katson
9722dd8cb7 Fewer unwraps 2024-03-30 20:22:04 +00:00
Igor Katson
bb0f3c36ec
Merge pull request #106 from ikatson/resilience-to-bogus-peers
Fix resilience to bogus peers
2024-03-29 20:46:37 +00:00
Igor Katson
ef44f104a5
disconnect peers that send bad data 2024-03-29 20:40:05 +00:00
Igor Katson
07bd9dec83
Remove sha1 extra features (#105)
Remove all extra sha1 features
2024-03-29 15:57:30 +00:00
Igor Katson
2b3980e40a
Better ETA 2024-03-29 13:51:11 +00:00
Igor Katson
fa05fe8376
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 13:44:10 +00:00
Igor Katson
f42de46878
Revert "Box<[u8]> instead of Vec<u8> for ByteBufOwned"
This reverts commit deee41cd93.
2024-03-29 13:00:57 +00:00
Igor Katson
ecb55ed32a
Revert "Another attempt to fix bugs"
This reverts commit 2004e7b21f.
2024-03-29 13:00:38 +00:00
Igor Katson
2004e7b21f
Another attempt to fix bugs 2024-03-29 12:57:29 +00:00
Igor Katson
deee41cd93
Box<[u8]> instead of Vec<u8> for ByteBufOwned 2024-03-29 11:00:58 +00:00
Igor Katson
3a1d0c3ac9
Tiny refactor: simplify a few methods by removing initial_peers propagated too deep down 2024-03-02 10:57:32 +00:00
Igor Katson
a6ebecee97
Report size to trackers 2024-03-01 07:54:27 +00:00
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
51dba8ab67
Remove unused field 2024-02-26 08:55:53 +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
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