You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that you are supporting a single authentication protocol only, you might want to consider using Version::V1Lazy instead of V1, potentially saving you one round trip. See V1Lazy docs for details.
Given that you are supporting a single authentication protocol only, you might want to consider using Version::V1Lazy instead of V1, potentially saving you one round trip. See V1Lazy docs for details.
In the docs it says V1Lazy only applies to the dialer. Since the rendezvous point never dials anyone, I don't think it is needed here?
This strategy is only applicable for the node with the role of “dialer” in the negotiation and only if the dialer supports just a single application protocol. In that case the dialer immedidately “settles” on that protocol, buffering the negotiation messages to be sent with the first round of application protocol data (or an attempt is made to read from the Negotiated I/O stream).
In the docs it says V1Lazy only applies to the dialer. Since the rendezvous point never dials anyone, I don't think it is needed here?
My bad. Yes you are right. I didn't think about this being a rendezvous-only binary.
You could consider setting Swarm::substream_upgrade_protocol_override to Version::V1Lazy to speed up e.g. libp2p-ping substream negotiations, might not be worth the performance gain in the case of libp2p-ping though. Also obviously not worth it in case you decide to remote libp2p-ping.
Unsolicited feedback. Feel free to ignore.
Given that you are supporting a single authentication protocol only, you might want to consider using
Version::V1Lazy
instead ofV1
, potentially saving you one round trip. SeeV1Lazy
docs for details.rendezvous-server/src/transport.rs
Lines 11 to 39 in b87efa3
The text was updated successfully, but these errors were encountered: