Skip to content
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

certificates: coalesce concurrent validations of the same host #2612

Open
danzh2010 opened this issue Oct 18, 2022 · 0 comments
Open

certificates: coalesce concurrent validations of the same host #2612

danzh2010 opened this issue Oct 18, 2022 · 0 comments

Comments

@danzh2010
Copy link
Contributor

#2525 made cronet and c++ engines be able to use platform provided APIs to asynchronously verify certificates. It is done by creating stand-alone threads to call into platform APIs when each validation is requested. Doing so ensures Envoy Mobile's network thread won't be blocked by these platform APIs calls, but one thread for one validation might be expensive for both memory and CPU. We want to improve that by limiting the number of validation threads and coalesce concurrent validations of the same host.

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

No branches or pull requests

1 participant