-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should ProtocolsHandler
get a InboundOpenInfo
type?
#1709
Comments
ProtocolsHandler::InboundOpenInfo
get InboundOpenInfo
type?ProtocolsHandler::InboundOpenInfo
get a InboundOpenInfo
type?
I know this isn't really documented, but in my mind it would be the other way around: the Since the user is free to pass any "meta-data" inside of the |
This only applies to successful upgrades and does not help with upgrade errors, no? Edit 1: For example timeouts. |
ProtocolsHandler::InboundOpenInfo
get a InboundOpenInfo
type?ProtocolsHandler
get a InboundOpenInfo
type?
I don't see another or better approach to attach context information to inbound upgrades that is also available in the error case. Adding to that the fact that the |
Another implication of |
Closed by #1714. |
When
libp2p-request-response
was introduced, it used a combination of upgrades and channels which was seen as a "natural continuation" of the original approach to negotiate protocols. Timeout handling in the context of this approach proved to be difficult (see #1706) because identifying upgrades and upgrade errors is not always possible for inbound upgrades. It seems that theProtocolsHandler
trait is missing a typeInboundOpenInfo
which would be available in upgrade callbacks, mirroring the already existingOutboundOpenInfo
type. This ticket is about the question if others see the need for such a type or not?The text was updated successfully, but these errors were encountered: