Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.17: separates out routing shreds from establishing connections (backport of #33599) #33772

Merged
merged 1 commit into from
Oct 20, 2023

Commits on Oct 19, 2023

  1. separates out routing shreds from establishing connections (#33599)

    Currently each outgoing shred 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 8becb72)
    behzadnouri authored and mergify[bot] committed Oct 19, 2023
    Configuration menu
    Copy the full SHA
    e51f747 View commit details
    Browse the repository at this point in the history