ikatson / rqbit

A bittorrent client in Rust
Other
831 stars 80 forks source link

Change to restarting of dead peers #239

Closed izderadicka closed 1 month ago

izderadicka commented 1 month ago

For a while I was observing how dead peers are retried and found couple of thing, which I think are sub-optimal:

This not final PR - rather a sketch to illustrate my findings. There is probably better way to solve it.

izderadicka commented 1 month ago

If you don't mind, I'll play more around this PR - remove first cancellation as it it clearly wrong now and look only on preventing retry on failed incoming peers.