Cache unsolicited Peers responses until needed #3110
Labels
A-network
Area: Network protocol updates or fixes
C-bug
Category: This is a bug
I-hang
A Zebra component stops responding to requests
I-invalid-data
Zebra relies on invalid or untrusted data, or sends invalid data
I-usability
Zebra is hard to understand or use
Motivation
Zebra currently drops unsolicited
Peers
responses.zcashd
sends anPeers
response soon after the connection opens, then it ignoresPeers
requests for a long while.This network protocol mismatch sometimes makes Zebra hang on startup, or sync really slowly.
Specifications
This behavior is unspecified.
Suggested Solution
Peers
response in each connectionPeers
request, consume and return the cached response. If there's no cached response, send agetaddr
message to the peer, and wait for the response.Related Work
#1892 has some other ideas for getting better addresses, but they're less important than this ticket
This change blocks #2325
This change is part of #704
The text was updated successfully, but these errors were encountered: