Skip to content

Conversation

matthewstevenson88
Copy link
Contributor

The logic is straightforward: attempt to read the GRPC_ALTS_MAX_CONCURRENT_HANDSHAKES environment variable and, if it set to an integer, instantiate the handshake queues based on this integer.

Based on go/grpc-alts-concurrent-handshake-cap. See grpc/grpc#32672 for a comparison with the C-core logic.

@matthewstevenson88 matthewstevenson88 marked this pull request as ready for review April 6, 2023 17:03
@matthewstevenson88
Copy link
Contributor Author

@temawi Would you be able to help review this PR?

Comment on lines 57 to 58
@VisibleForTesting
static final String ALTS_MAX_CONCURRENT_HANDSHAKES_ENV_VARIABLE =
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like you can remove the @VisibleForTesting on this one.

@temawi temawi merged commit 11a1f9e into grpc:master Apr 10, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants