Commit graph

1490 commits

Author SHA1 Message Date
Igor Katson
e4845e2368
Add a clarifying comment 2024-12-07 11:51:58 +00:00
Igor Katson
0fabb453aa
Storing torrent name in ManagedTorrentShared 2024-12-06 12:57:26 +00:00
Igor Katson
0a92cf1d65
cleanup a couple unnecessary drop(g) calls 2024-12-06 12:37:53 +00:00
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
a1de63e486
Merge pull request #284 from ikatson/pex-send-updates
PEX - sharing peers with othes [continue #261]
2024-12-04 13:00:01 +01: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
fb4e4c5741
Merge pull request #289 from ikatson/clippy-1.83
Clippy updates + update Rust deps
2024-12-03 22:22:09 +01: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
1998f7d859
Bump min Rust version to 1.78. Check on 1.78 and 1.83 2024-12-03 20:51:36 +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
a728b6666c
Merge pull request #283 from luigi311/lto
Enable thin LTO release but not release-github
2024-11-28 09:49:55 +01:00
Luis Garcia
9e998c67bc disable lto on release-github
Signed-off-by: Luis Garcia <git@luigi311.com>
2024-11-24 04:11:57 -07:00
Luis Garcia
b84f606825 Enable thin LTO
Signed-off-by: Luis Garcia <git@luigi311.com>
2024-11-24 03:23:20 -07:00
Igor Katson
3378ecb5b4
Merge pull request #279 from ikatson/http-api-auth
Basic auth in HTTP API
2024-11-21 14:50:53 +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
09c9659b88
Merge pull request #275 from ikatson/updown-ratelimits
undefined
2024-11-20 16:26:57 +00:00
Igor Katson
e5c11e778a
Trying to fix rust compat 2024-11-20 16:17:32 +00:00
Igor Katson
69a638fb81
Poor mans desktop (UI) widgets for ratelimits 2024-11-20 16:12:42 +00:00
Igor Katson
06b50d65ab
Desktop config: ratelimits 2024-11-20 15:30:56 +00:00