Commit graph

144 commits

Author SHA1 Message Date
Ivan
4bd757173d Set outgoing IP address for incomming peers after Ext. handshake 2024-09-26 18:11:05 +02:00
Ivan
a483bc6586 Update outgoing address for incoming peers 2024-09-25 22:32:38 +02:00
Ivan Zderadicka
f7a812439b
Change to restarting of dead peers (#239)
* Logging died peers

* Ignore incoming for retry,  cancel retries after download is complete

* Remove cancel

* Add incoming flag to PeerHandler

* Cleaning up, plus debug

* Fix debug style
2024-09-22 08:31:57 +01:00
Igor Katson
dedee2ef08
Watching works fine 2024-09-13 12:58:09 +01:00
Igor Katson
8974a013ce
Move on_piece_completed() to a more appropriate place 2024-09-13 09:25:52 +01:00
Ivan
bf7f78b602 In PEX we should also look at dropped peers 2024-09-08 14:30:36 +02:00
Igor Katson
206bcde06f
Attempting to connect even if we have full torrent (as other clients do, to attempt upload) 2024-08-31 12:56:47 +01:00
Igor Katson
b60ec6d919
peer has full torrent debug message 2024-08-31 12:53:56 +01:00
Igor Katson
b60850946e
Fix: unchoke now sent after Bitfield properly, not before 2024-08-31 12:15:22 +01:00
Igor Katson
3f014ee80a
Sending your ip as part of peer_connection.rs 2024-08-31 12:15:22 +01:00
Igor Katson
9225e126d9
Check SOME fastresume data, dont trust it completely. 2024-08-29 15:43:19 +01:00
Igor Katson
d6b1c47d45
Add #[track_caller] to all spawns so that tokio-console works (if enabled) 2024-08-29 10:30:06 +01:00
Igor Katson
fc7ae3bbe5
[Feature] option to disable upload 2024-08-28 18:02:25 +01:00
Igor Katson
9f798696ff
reduce noisy test logs 2024-08-28 17:44:46 +01:00
Igor Katson
14e0c9d833
Remove duplicate ut_pex message 2024-08-28 10:20:58 +01:00
Igor Katson
9d1ef5c35c
Shorten ByteBuf trait bounds everywhere 2024-08-28 10:20:58 +01:00
Igor Katson
90bfb85bcc
Some cleanups for utpex 2024-08-28 10:20:45 +01:00
Ivan
5e09525dd5
Feeding peers from PEX added - PoC 2024-08-28 10:10:34 +01:00
Ivan
bbc951733f
PEX: Announce support and message definition 2024-08-28 10:06:16 +01:00
Igor Katson
c12fcd7902
Fix a rare deadlock 2024-08-25 15:43:13 +01:00
Igor Katson
c697809e50
Clear have_bitfield on error 2024-08-21 18:21:15 +01:00
Igor Katson
3067ad21d5
Cleanups 2024-08-21 16:20:46 +01:00
Igor Katson
451debedbb
Renames 2024-08-21 16:12:20 +01:00
Igor Katson
67afdb0aa5
Add a struct for session stats + bump the counters 2024-08-21 11:22:37 +01:00
Igor Katson
65feec3406
Fastresume CLI option 2024-08-20 21:47:08 +01:00
Igor Katson
2fee0ca8c2
flushing bitfield 2024-08-20 21:09:58 +01:00
Igor Katson
8135b31a5d
Use in chunk_tracker 2024-08-20 17:15:37 +01:00
Igor Katson
e0c459e9f5
Fix unchoke broken in previous PR 2024-08-19 16:51:50 +01:00
Igor Katson
8de27f812a
Proper bitfield handling 2024-08-19 16:29:32 +01:00
Igor Katson
3dcf43f448
Further e2e fixes for reliability 2024-08-19 16:02:11 +01:00
Igor Katson
e4aac7930f
make async-backtrace optional 2024-08-19 13:40:01 +01:00
Igor Katson
0cb92eb333
Notify for released pieces 2024-08-19 13:17:13 +01:00
Igor Katson
02eca15c70
Remove a spurious complicated function ".mark_chunk_request_cancelled" 2024-08-19 12:54:56 +01:00
Igor Katson
7cda2c9807
async_backtrace 2024-08-19 12:35:32 +01:00
Igor Katson
79e206d5a7
more tracing spans 2024-08-19 12:10:12 +01:00
Igor Katson
5384f8c9db
Fix the bug thanks to e2e test 2024-08-14 12:14:57 +01:00
Igor Katson
53d61d0428
fixing bugs 2024-08-14 12:14:57 +01:00
Igor Katson
55649e181a
untested support for send_metadata_piece 2024-08-14 12:14:57 +01:00
Igor Katson
c7ed475f54
Use bytes crate for zerocopy and memory re-use (#182)
* Use bytes. Not yet zerocopy everywhere but compiles

* Actually zerocopy

* Actually zerocopy

* Not actually storing the torrent on disk now
2024-08-14 12:08:46 +01:00
Igor Katson
70dcb2e6cb
First pass to implement socks5 support 2024-08-08 00:46:39 +01:00
Ivan
e08821bff7 Mark dead code explicitly 2024-07-27 08:46:33 +02:00
Igor Katson
3b0987ec23
Fix new stealing bug (ppl_cache) 2024-05-04 23:19:36 +01:00
Igor Katson
8a86d04631 Dont spam haves 2024-05-03 20:24:39 +04:00
Igor Katson
44aa75f34b Reimplement maybe_transmit_haves with a broadcast channel 2024-05-03 20:24:39 +04:00
Igor Katson
7ed7e277c0 maybe_transmit_haves: need to optimise 2024-05-03 20:24:39 +04:00
Igor Katson
b3cb194700 Downgrade a couple messages 2024-05-03 20:24:39 +04:00
Igor Katson
eafd274a0b --defer-writes-up-to 2024-05-03 20:24:39 +04:00
Igor Katson
a3c4ca70fb Nothing 2024-05-03 20:24:39 +04:00
Igor Katson
3769cae1ce dont blow up memory 2024-05-03 20:24:39 +04:00
Igor Katson
43008f2857 Less work when defer writes is disabled 2024-05-03 20:24:39 +04:00