Skip to content

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

Merged
jhump merged 2 commits intomainfrom
jh/fix-canceled-vs-deadline-exceeded
Mar 13, 2024
Merged

Update a couple of more places where we should return a context error if there is one#709
jhump merged 2 commits intomainfrom
jh/fix-canceled-vs-deadline-exceeded

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.

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.

2 participants