Skip to content

Put a 2-second deadline on ALTS handshake RPCs#20687

Closed
apolcyn wants to merge 11 commits intogrpc:masterfrom
apolcyn:alts_rpcs_have_deadlines
Closed

Put a 2-second deadline on ALTS handshake RPCs#20687
apolcyn wants to merge 11 commits intogrpc:masterfrom
apolcyn:alts_rpcs_have_deadlines

Conversation

@apolcyn
Copy link
Copy Markdown
Contributor

@apolcyn apolcyn commented Oct 19, 2019

Based on #20596

ALTS handshakes can get stuck e.g. until subchannel connect deadlines expire, for different reasons (e.g. a slow or non-responsive peer). When that happens, these handshakes are susceptible to holding up resources and preventing other, otherwise-independent ALTS handshakes from making progress.
The new test_handshake_fails_within_short_deadline_when_peer_endpoint_is_non_responsive_after_accepting test here is meant to try to illustrate this.

Note follow-up PR on top of this one: #20722

@apolcyn apolcyn added lang/core release notes: no Indicates if PR should not be in release notes labels Oct 19, 2019
@apolcyn apolcyn changed the title Put a 2-second deadline on ALTS handshake RPCs WIP: Put a 2-second deadline on ALTS handshake RPCs Oct 21, 2019
@apolcyn apolcyn force-pushed the alts_rpcs_have_deadlines branch from 2c191dd to b43298f Compare October 21, 2019 05:43
@apolcyn apolcyn changed the title WIP: Put a 2-second deadline on ALTS handshake RPCs Put a 2-second deadline on ALTS handshake RPCs Oct 21, 2019
@apolcyn apolcyn force-pushed the alts_rpcs_have_deadlines branch from b43298f to b8c0703 Compare October 21, 2019 08:05
@apolcyn apolcyn changed the title Put a 2-second deadline on ALTS handshake RPCs WIP: Put a 2-second deadline on ALTS handshake RPCs Oct 21, 2019
@apolcyn apolcyn force-pushed the alts_rpcs_have_deadlines branch from b8c0703 to 9cfddae Compare October 21, 2019 18:48
@apolcyn apolcyn force-pushed the alts_rpcs_have_deadlines branch from fc2db68 to e7a6aeb Compare October 21, 2019 20:31
@apolcyn apolcyn changed the title WIP: Put a 2-second deadline on ALTS handshake RPCs Put a 2-second deadline on ALTS handshake RPCs Oct 21, 2019
@apolcyn apolcyn force-pushed the alts_rpcs_have_deadlines branch 2 times, most recently from f702741 to d2690d2 Compare October 21, 2019 22:41
@apolcyn
Copy link
Copy Markdown
Contributor Author

apolcyn commented Nov 5, 2019

Dropping this in favor of #20929

@apolcyn apolcyn closed this Nov 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lang/core release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants