Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
separates out routing repair requests from establishing connections (#…
Browse files Browse the repository at this point in the history
…33742)

Currently each outgoing repair request will attempt to establish a
connection if one does not already exist. This is very wasteful and
consumes many tokio tasks if the remote node is down or unresponsive.

The commit decouples routing packets from establishing connections by
adding a buffering channel for each remote address. Outgoing packets are
always sent down this channel to be processed once the connection is
established. If connecting attempt fails, all packets already pushed to
the channel are dropped at once, reducing the number of attempts to make
a connection if the remote node is down or unresponsive.

(cherry picked from commit 7aa0fae)
  • Loading branch information
behzadnouri authored and mergify[bot] committed Oct 19, 2023
1 parent ab99086 commit 56b128f
Showing 1 changed file with 168 additions and 112 deletions.
Loading

0 comments on commit 56b128f

Please sign in to comment.