Skip to content

fix: put RemoteCertVerifier upstream from the caching and coalescing layers - #28358

Merged
nornagon merged 1 commit into
masterfrom
fix-remote-cert-verifier
Mar 29, 2021
Merged

nornagon merged 1 commit into
masterfrom
fix-remote-cert-verifier

Conversation

@nornagon

Copy link
Copy Markdown
Contributor

Description of Change

This fixes #28313.

Before this change, the RemoteCertVerifier would receive several concurrent
requests to verify the same domain, and the 2nd one to return would cause a
crash. I'm not totally sure what the exact cause of the crash was, but putting
the RemoteCertVerifier upstream from the coalescing and caching layers means
that only one verification request gets sent to the main process, and by doing
so fixes the crash.

Checklist

Release Notes

Notes: Fixed a network process crash that could happen when using setCertificateVerifyProc with many concurrent verification requests.

@nornagon
nornagon requested a review from a team as a code owner March 23, 2021 18:30
@nornagon nornagon added semver/patch backwards-compatible bug fixes target/11-x-y labels Mar 23, 2021
@electron-cation electron-cation Bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Mar 23, 2021
@nornagon
nornagon merged commit 9a7cfc4 into master Mar 29, 2021
@nornagon
nornagon deleted the fix-remote-cert-verifier branch March 29, 2021 22:35
@release-clerk

release-clerk Bot commented Mar 29, 2021

Copy link
Copy Markdown

Release Notes Persisted

Fixed a network process crash that could happen when using setCertificateVerifyProc with many concurrent verification requests.

@trop

trop Bot commented Mar 29, 2021

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "12-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Mar 29, 2021

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "11-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Mar 29, 2021

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "13-x-y", please check out #28433

@trop

trop Bot commented Mar 31, 2021

Copy link
Copy Markdown
Contributor

@nornagon has manually backported this PR to "12-x-y", please check out #28465

@trop

trop Bot commented Mar 31, 2021

Copy link
Copy Markdown
Contributor

@nornagon has manually backported this PR to "11-x-y", please check out #28470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Rapid requests to same domain cause session.setCertificateVerifyProc to break requests (maybe session related?)

3 participants