forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uses datagrams for repair over QUIC protocol (#2871)
Incoming packets can be either: RepairProtocol RepairResponse or Shred + repair Nonce AncestorHashesResponse So, we need 3 QUIC endpoints on 3 separate sockets to correctly distinguish between these packets and send them down the right channel. 1) serve_repair_quic: The server side receives incoming RepairProtocols from the cluster and channels them to serve_repair using a Sender<RemoteRequest> channel. The outgoing repair (or ancestor hashes) responses from serve_repair are sent back to the client side through a AsyncReceiver<(SocketAddr, Bytes)> channel and sent back to the remote node. 2) repair_quic: Outgoing repair requests from the repair_service are received by the client through a AsyncReceiver<(SocketAddr, Bytes)> channel and sent to serve_repair_quic socket of the remote node. Incoming repair responses (RepairResponse or Shred + repair Nonce) are channeled to shred-fetch-stage using a Sender<(Pubkey, SocketAddr, Bytes)> channel. 3) ancestor_hashes_requests_quic: Outgoing RepairProtocol::AncestorHashes from the ancestor_hashes_service are received by the client through a AsyncReceiver<(SocketAddr, Bytes)> channel and sent to serve_repair_quic socket of the remote node. Incoming AncestorHashesResponse are channeled back to ancestor_hashes_service using a Sender<(Pubkey, SocketAddr, Bytes)> channel.
- Loading branch information
1 parent
1805924
commit 4a1b75f
Showing
11 changed files
with
615 additions
and
718 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.