-
Notifications
You must be signed in to change notification settings - Fork 814
Client handle server cancellation for deadline #1402
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
Conversation
8a4714b
to
c2963e6
Compare
} | ||
|
||
status = s; | ||
resolvedException = CreateRpcException(s); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolvedException = CreateRpcException(s); | |
resolvedException = CreateRpcException(status); |
Nit: reads a little clearer although there's no functional difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s
is used here because status
is nullable.
} | ||
#endif | ||
|
||
public static int IndexOf(string s, char value, StringComparison comparisonType) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooooooh! Didn't realize we had this suite of compat helpers. I was wondering how we managed different warnings for each target in the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a method is only used once then the #ifdef
is left inline. If a method is used multiple times then it makes sense to centralize it here.
@captainsafia Additional feedback or approval so this can be merged? 🙏 |
af0277b
to
5e5f74f
Compare
5e5f74f
to
db3e63c
Compare
Fixes #1214
Handle the situation where the server exceeds deadline and sends RST_STREAM with status CANCELLED to the client, and the client receives it before its local timer executes.