Closed
Bug 1142586
Opened 11 years ago
Closed 10 years ago
Network CHANGED should not imply polling for UP/DOWN status
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla39
| Tracking | Status | |
|---|---|---|
| firefox39 | --- | fixed |
People
(Reporter: daniel, Assigned: daniel)
Details
Attachments
(1 file)
|
1.33 KB,
patch
|
valentin
:
review+
valentin
:
feedback+
|
Details | Diff | Splinter Review |
Bug 1132693 made nsIOService::OnNetworkLinkEvent() poll the link service for UP/DOWN status even for CHANGED events which seems wrong. The check _can_ be fairly expensive.
I cannot see a reason for that as per how the CHANGED event is supposed to work and also the bug 1132693 didn't motivate either. I didn't spot that problem with the patch back then but I think we should fix it now.
Here's what how I suggest nsIOService::OnNetworkLinkEvent() should deal with CHANGED events.
Comment 2•11 years ago
|
||
Comment on attachment 8576740 [details] [diff] [review]
0001-Bug-1142586-avoid-asking-the-link-service-for-online.patch
That seems fair. I thought it made sense at the time I made the change. I think Android was the only one affected by the previous regression.
Attachment #8576740 -
Flags: feedback+
Comment on attachment 8576740 [details] [diff] [review]
0001-Bug-1142586-avoid-asking-the-link-service-for-online.patch
Review handed to :valentin with permission from :jduel
Attachment #8576740 -
Flags: review?(valentin.gosu)
Comment 4•11 years ago
|
||
Comment on attachment 8576740 [details] [diff] [review]
0001-Bug-1142586-avoid-asking-the-link-service-for-online.patch
Looks good.
Attachment #8576740 -
Flags: review?(valentin.gosu) → review+
Thanks Valentin!
The try-run looks good, ignoring the Mac OS X collapse and a buildbust on b2g I can't see is related.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=41fee025efef
Keywords: checkin-needed
Comment 6•10 years ago
|
||
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•