Skip to content

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Sep 6, 2021

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.

@JamesNK JamesNK force-pushed the jamesnk/protocolerror branch from 8a4714b to c2963e6 Compare September 15, 2021 05:25
}

status = s;
resolvedException = CreateRpcException(s);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resolvedException = CreateRpcException(s);
resolvedException = CreateRpcException(status);

Nit: reads a little clearer although there's no functional difference.

Copy link
Member Author

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)
Copy link
Contributor

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.

Copy link
Member Author

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.

@JamesNK
Copy link
Member Author

JamesNK commented Sep 22, 2021

@captainsafia Additional feedback or approval so this can be merged? 🙏

@JamesNK JamesNK force-pushed the jamesnk/protocolerror branch from af0277b to 5e5f74f Compare September 22, 2021 03:02
@JamesNK JamesNK force-pushed the jamesnk/protocolerror branch from 5e5f74f to db3e63c Compare September 24, 2021 21:32
@JamesNK JamesNK merged commit 0f26bd7 into grpc:master Sep 27, 2021
@JamesNK JamesNK deleted the jamesnk/protocolerror branch September 27, 2021 03:43
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.

Aborted call throws IOException and might get wrong status

2 participants