Skip to content

protocols/request-response: Remove InboundFailure::ConnectionClosed#1863

Closed
mxinden wants to merge 1 commit into
libp2p:masterfrom
mxinden:remove-in-conn-closed
Closed

protocols/request-response: Remove InboundFailure::ConnectionClosed#1863
mxinden wants to merge 1 commit into
libp2p:masterfrom
mxinden:remove-in-conn-closed

Conversation

@mxinden

@mxinden mxinden commented Nov 27, 2020

Copy link
Copy Markdown
Member

The InboundFailure::ConnectionClosed event is never emitted by the RequestResponse NetworkBehaviour. Responses to be send on a closed connection are simply dropped.

See #1860 (comment) for details.

For now the event is just removed to fix the status quo. In the future we might want to extend the events emitted by RequestResponse regarding inbound requests to give users more visibility. This is not trivial, see #1860 for details.

What do you think?

The `InboundFailure::ConnectionClosed` event is never emitted by the
`RequestResponse` `NetworkBehaviour`. Responses to be send on a closed
connection are simply dropped.
@romanb

romanb commented Nov 30, 2020

Copy link
Copy Markdown
Contributor

Let me try and see if I can up with an alternative by tomorrow.

@mxinden

mxinden commented Nov 30, 2020

Copy link
Copy Markdown
Member Author

Thanks @romanb. This is not blocking any of my work and thus is not in a rush.

@romanb

romanb commented Dec 7, 2020

Copy link
Copy Markdown
Contributor

Superseded by #1867.

@romanb romanb closed this Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants