Repository navigation
fix: recover network requests after Network Service restart - #49887
Conversation
8acfa15 to
bfda6e2
Compare
bf9f4a0 to
a1fbf7e
Compare
|
Thanks for tackling this, there was already an effort for this #49215, can you merge your changes onto the original PR so we can also give the author the credits. I prefer the code style in this PR Only one additional change, instead of an internal event can you rely on the following two content apis https://source.chromium.org/chromium/chromium/src/+/main:content/browser/network_service_instance_impl.h;l=68-75 via our testing module https://github.com/electron/electron/blob/main/shell/common/api/electron_api_testing.cc |
|
@deepak1556 i can add co-author credit here, but i was concerned in the original PR that the committer was different: https://github.com/electron/electron/pull/49215/commits. That PR also doesn't address utility process functionality from what i understand. |
3b6d0c5 to
4b8024a
Compare
4b8024a to
18d4978
Compare
18d4978 to
a34c332
Compare
a34c332 to
2c92d17
Compare
2c92d17 to
438a59f
Compare
|
Release Notes Persisted
|
…#49887) * fix: recover network requests after Network Service restart * chore: reuse implementation * chore: make linter happy * chore: fix lint --------- Co-authored-by: deepak1556 <[email protected]> Co-authored-by: Charles Kerr <[email protected]>
Description of Change
Closes #49572.
When the Network Service process crashes and restarts, cached
URLLoaderFactoryandHostResolverinstances become stale, causing all subsequentnet.fetch requestsin both the main process and utilityprocesses to fail with
net::ERR_FAILED.This adds a Network Service restart notification mechanism via
SystemNetworkContextManagerthat resets stale factories inElectronBrowserContextand sends fresh ones to utility processes via a newUpdateURLLoaderFactoryMojo IPC.URLLoaderBundleis refactored to implementSharedURLLoaderFactorydirectly, allowing replacement of the underlying remote without invalidating existing consumer references.Checklist
npm testpassesRelease Notes
Notes: Fixed an issue where
net.fetch()requests in the main process and utility processes would permanently fail withnet::ERR_FAILEDafter the Network Service process crashed and restarted.