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

Update a couple of more places where we should return a context error if there is one #709

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

jhump
Copy link
Member

@jhump jhump commented Mar 13, 2024

This is effectively a continuation of #659, catching two more places that needed to be instrumented.

This issue was discovered when running conformance tests (connectrpc/conformance#813). It was occurring consistently with full-duplex streams against one particular server implementation. I think that implementation was eagerly doing a server-side cancelation of the stream when the server saw that its deadline had elapsed, and that other implementations generally don't do this. In this particular case, the framework was observing the "RSTStream" frame and returning a "canceled" code even though the operation's context had already elapsed and had a "deadline exceeded" error. So the RPC was returning a "canceled" error code when it ideally would instead return a "deadline exceeded" code. This PR fixes that discrepancy.

@jhump jhump merged commit c22fe4f into main Mar 13, 2024
12 checks passed
@jhump jhump deleted the jh/fix-canceled-vs-deadline-exceeded branch March 13, 2024 14:17
@jhump jhump added the bug Something isn't working label Mar 20, 2024
@jhump jhump mentioned this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants