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
We should allow users to specify two Transport implementations in the Handshaker, a main transport type, as well as a fallback transport type. For users that just want a main transport type, we would also provide an implementation for a NullTransport, so they can give that as the fallback Transport.
This seems like a common enough feature to warrant built in support for contacting peers over transport A, and if that fails, try connecting to them over transport B. We would also spawn listeners for both transport types.
An alternative to providing this feature at the Handshaker layer is to define compound Transports that can handle this logic transparently. The problems with that are:
We handle connection timeouts at the Handshaker level, the Transport doesnt know about this
We may have to box the return types since different Transports could return different connection objects
The text was updated successfully, but these errors were encountered:
We should allow users to specify two
Transport
implementations in theHandshaker
, a main transport type, as well as a fallback transport type. For users that just want a main transport type, we would also provide an implementation for aNullTransport
, so they can give that as the fallbackTransport
.This seems like a common enough feature to warrant built in support for contacting peers over transport A, and if that fails, try connecting to them over transport B. We would also spawn listeners for both transport types.
An alternative to providing this feature at the
Handshaker
layer is to define compoundTransports
that can handle this logic transparently. The problems with that are:Handshaker
level, theTransport
doesnt know about thisTransports
could return different connection objectsThe text was updated successfully, but these errors were encountered: