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
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
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
Igor Katson
b808382169
Fix a bug when remarking already have pieces broken
2024-01-02 18:52:00 +00:00
Igor Katson
d5d98aff60
Extract ReadBuf logic into a separate struct
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
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
98d6a6f054
Trying to optimize logs JS code
2023-12-09 12:25:14 +00:00
Igor Katson
bed7433d8e
Use tokio_util::CancellationToken everywhere
2023-12-07 10:22:17 +00:00
Igor Katson
d258a9afe2
Processing cancel messages
2023-12-06 23:25:52 +00:00
Igor Katson
3a69f04782
Shorten a log line
2023-12-06 11:50:36 +00:00
Igor Katson
0cd875e740
Incoming peers now respect concurrency limits
2023-12-06 00:39:52 +00:00
Igor Katson
91873ed287
Bump seen counters
2023-12-06 00:26:52 +00:00
Igor Katson
fd17ddc46b
Allow peers to reconnect
2023-12-06 00:16:59 +00:00
Igor Katson
ca8989f8e6
Saving
2023-12-05 23:38:05 +00:00
Igor Katson
b224ed2397
Flush messages before disconnecting (lame)
2023-12-05 22:22:59 +00:00
Igor Katson
5e238419f4
Fix a bug with sending interested
2023-12-05 22:14:55 +00:00
Igor Katson
80df2c1001
Display upload speed in Web UI
2023-12-05 20:52:30 +00:00
Igor Katson
4784f3f14b
Uploading seems to work fine now
2023-12-05 20:31:06 +00:00
Igor Katson
efaa36a161
SAving, its broken
2023-12-05 20:10:09 +00:00
Igor Katson
65c69f576b
Code fully compiles for processing incoming peers
2023-12-05 20:10:09 +00:00
Igor Katson
9c7cf61e1a
Handshake clone to owned
2023-12-05 20:10:09 +00:00
Igor Katson
a5ae2988b8
Downgraded a bunch of messages from debug to trace
2023-11-29 23:45:08 +00:00
Igor Katson
6f113c5137
Fatal error handling
2023-11-25 13:53:57 +00:00
Igor Katson
79bd41a552
Can now reload RUST_LOG at runtime from HTTP API
2023-11-25 01:24:57 +00:00
Igor Katson
fa97dedb98
Seems alright now
2023-11-25 00:54:21 +00:00
Igor Katson
17b243921d
Continuing refactor
2023-11-25 00:24:32 +00:00
Igor Katson
4927850ff9
Fixed a bug when unpausing torrents
2023-11-24 21:03:34 +00:00
Igor Katson
d7a37c1b48
Saving
2023-11-24 18:28:46 +00:00
Igor Katson
876afbf41b
Initialization progress reporting
2023-11-24 15:04:36 +00:00
Igor Katson
afbf2a76b9
Should be working ok now
2023-11-24 14:08:02 +00:00
Igor Katson
5e728fc67b
saving
2023-11-24 12:48:22 +00:00
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