-
Notifications
You must be signed in to change notification settings - Fork 16.4k
fix: net.isOnline
always true in utility processes
#48111
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
Conversation
net.isOnline
always true in utility orocesses
net.isOnline
always true in utility orocessesnet.isOnline
always true in utility processes
45c52a4
to
6a57fc5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Co-authored-by: Robo <hop2deep@gmail.com>
4162760
to
ce3fa89
Compare
Release Notes Persisted
|
I have automatically backported this PR to "38-x-y", please check out #48151 |
I have automatically backported this PR to "37-x-y", please check out #48152 |
I have automatically backported this PR to "36-x-y", please check out #48153 |
Description of Change
Closes #48100.
Fixes an issue where
net.isOnline()
always returnedtrue
in utilityProcesses. This happened because utility processes never created anet::NetworkChangeNotifier
, sonet.isOnline()
always saw a null global and defaulted to “online”.Fix this by adding a per‑utility‑process
NetworkChangeNotifier
duringNodeService::Initialize()]
, allowingnet.isOnline()
to reflect real connectivity.Checklist
npm test
passesRelease Notes
Notes: Fixed an issue where
net.isOnline()
always returnedtrue
in utilityProcesses.