Skip to content
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

feat: implement connection resets #31

Merged
merged 21 commits into from
Nov 22, 2023
Merged

feat: implement connection resets #31

merged 21 commits into from
Nov 22, 2023

Conversation

hawkw
Copy link
Contributor

@hawkw hawkw commented Nov 22, 2023

This branch implements connection-level resets, as described in #23.

In order to implement resets, I've added support for closing a tricky-pipe channel with a typed error. Both the sender and receiver can close the channel with an error, and when this occurs, both sides will return that error when receiving/sending. This allows us to easily propagate connection-level resets from the peer to a local client/server when a reset message is received on the wire.

I have not implemented global resets on wire-level errors yet. I plan to do that in a subsequent PR.

@hawkw hawkw requested a review from jamesmunns November 22, 2023 19:02
@hawkw hawkw merged commit 6957bf7 into main Nov 22, 2023
@hawkw hawkw deleted the eliza/pipe-error branch November 22, 2023 21:02
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.

1 participant