Commit graph

1122 commits

Author SHA1 Message Date
Igor Katson
5df342e442
Nothing: move a comment 2024-12-06 12:25:16 +00:00
Igor Katson
4c654a0631
Tiny optimisation for code size 2024-12-06 12:17:52 +00:00
Igor Katson
5f07872725
Docs for _start() 2024-12-06 12:14:34 +00:00
Igor Katson
38fec48879
Reorganize _start() a bit 2024-12-06 12:08:03 +00:00
Igor Katson
7ed037cba8
comments 2024-12-06 11:30:04 +00:00
Igor Katson
f637959ba7
Group session fields + add comments (Claude) 2024-12-06 00:08:11 +00:00
Igor Katson
456a51d4db
Split up "add_torrent" method 2024-12-05 23:48:14 +00:00
Igor Katson
100b7116df
Split out TorrentMetadata 2024-12-05 23:12:46 +00:00
Igor Katson
e440f03970
spawn_peer_adder: Option<PeerStream> -> PeerStream 2024-12-05 22:05:04 +00:00
Igor Katson
b796a8767b
"main_torrent_info" -> "add_torrent_internal" 2024-12-05 21:58:12 +00:00
Igor Katson
96946d5a81
"make_peer_rx_managed_torrent" 2024-12-05 21:57:44 +00:00
Igor Katson
8131ba0482
Store initial_peers in state 2024-12-05 21:47:37 +00:00
Igor Katson
e22132bba0
"make_peer_rx" - include initial peers 2024-12-05 21:45:27 +00:00
Igor Katson
fce467e005
[feature] HTTP API timeouts (#290)
* write an extractor for timeout

* Use timeout

* Default timeout 10min
2024-12-04 17:28:28 +00:00
Igor Katson
fb760b282e
Only successful outgoing connections marked 2024-12-04 10:39:37 +00:00
Igor Katson
ac775affef
nit: decrease branch nesting 2024-12-04 10:21:10 +00:00
Igor Katson
9d71eb4872
Remove PeerStateNoMut 2024-12-04 10:17:42 +00:00
Igor Katson
956e6d4f08
Move all methods to Peer, not PeerStateNoMut 2024-12-04 10:12:44 +00:00
Igor Katson
85b65dcef5
Rename a couple methods 2024-12-04 10:08:51 +00:00
Igor Katson
fa3e8d949b
Peer struct knows its addr 2024-12-04 10:06:08 +00:00
Igor Katson
adc2ca97b3
A bit of refactoring to store live_peers 2024-12-04 10:03:08 +00:00
Igor Katson
7a52721af9
Refactor for readability 2024-12-04 09:13:39 +00:00
Igor Katson
c8cd17ce8e
Format comments 2024-12-04 09:13:39 +00:00
Ivan
90a823b3ed
Small fixes base on comments in PR #261 2024-12-04 09:13:39 +00:00
Ivan
42d184ff6b
Logging 2024-12-04 09:13:39 +00:00
Ivan
1fa05837fb
Include only addresses with known working connections 2024-12-04 09:13:39 +00:00
Ivan
1129d5b6e6
Fix missing fn 2024-12-04 09:13:39 +00:00
Ivan
3c470e1670
Sending PEX - initial concept 2024-12-04 09:13:38 +00:00
Igor Katson
131e978a22
Cargo fmt 2024-12-03 21:12:33 +00:00
Igor Katson
1fb3d7cf55
Trying to fix Rust 1.78 2024-12-03 21:10:09 +00:00
Igor Katson
301232c9bd
Trying to fix Rust 1.78 2024-12-03 21:07:44 +00:00
Igor Katson
44c54ed3ce
Try to remove default features from "url" to compile on older Rusts 2024-12-03 20:58:21 +00:00
Igor Katson
76cf1eb00a
Update cargo crates 2024-12-03 20:44:23 +00:00
Igor Katson
438e164ffd
Fix clippy errors 2024-12-03 20:40:02 +00:00
Igor Katson
6213481732
WWW-Authenticate header 2024-11-20 17:29:21 +00:00
Igor Katson
3e8a39314b
Basic auth in HTTP API 2024-11-20 17:20:44 +00:00
Igor Katson
e5c11e778a
Trying to fix rust compat 2024-11-20 16:17:32 +00:00
Igor Katson
06b50d65ab
Desktop config: ratelimits 2024-11-20 15:30:56 +00:00
Igor Katson
2a7c632b2b
Expose ratelimits in CLI 2024-11-18 17:40:04 +00:00
Igor Katson
1168307189
change RwLock<Option<Arc>> to ArcSwapOption 2024-11-18 17:34:50 +00:00
Igor Katson
855e7ccaeb
Swap Arc<Option> into Option<Arc> 2024-11-18 17:34:50 +00:00
Igor Katson
1dbdeb5bbe
Replace leaky_bucket with governor crate 2024-11-18 17:34:50 +00:00
Igor Katson
3924197461
Ready to test session limits 2024-11-18 17:34:50 +00:00
Igor Katson
37810443df
Ability to set limits 2024-11-18 17:34:50 +00:00
Igor Katson
25b309867b
Initial impl of up/down ratelimits 2024-11-18 17:34:50 +00:00
Igor Katson
616498f500 Update minimal Rust version to 1.76 2024-11-18 17:34:32 +00:00
Igor Katson
95f5a322f6
[feature] support 40-byte infohash (not a magnet) as a way to add torrents 2024-11-07 19:35:02 +00:00
Igor Katson
c3c413c14b
Do not display padding files in UI 2024-11-07 16:07:16 +00:00
Igor Katson
ecc094a444
Do not create empty folders for padding files 2024-11-07 15:58:03 +00:00
Igor Katson
cc002a4ed3
Fix initial peers for HTTP client 2024-11-07 15:19:11 +00:00