feat(request-response): configurable use of relayed connections#6501
Conversation
dariusc93
left a comment
There was a problem hiding this comment.
This sounds more like a user-specific use-case, in which case wouldnt it make more sense to write a behaviour, wrapping around request-response to perform the filtering based on a specified configuration?
Interesting idea. I'm not deeply familiar with the rust-libp2p internals, so the feasibility of this I can't judge. My instinct would tell me that a wrapper around request-response would have a hard time modifying its internal behaviour. Could you give me a few pointers on the architectural decisions that might enable such a wrapper? |
e83150e to
e3d9efa
Compare
Add a config flag controlling whether outbound requests may be sent over relay connections. Defaults to enabled (current behaviour); when disabled, only direct connections are used, conserving relay bandwidth. Promote is_relayed helper to core.
e3d9efa to
e7249ec
Compare
Description
Add a config flag controlling whether outbound requests may be sent over relay connections. Defaults to enabled (current behaviour); when disabled, only direct connections are used, conserving relay bandwidth. Also filter relayed addresses via multiaddr::Protocol and tolerate the extended DialFailure fields.
Fixes #6238.
AI Assistance Disclosure
Tools used Github Copilot, Claude Code
Attestation (required):
Change checklist