Clean up some DNS code
Categories
(Core :: Networking: DNS, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: valentin, Assigned: valentin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(16 files)
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details | |
(deleted),
text/x-phabricator-request
|
Details |
Assignee | ||
Comment 1•4 years ago
|
||
The reason this worked previously is that we initialized recPtr = rec;
in
the for loop iterating through callbacks.
Records that were in the evictionQ did not have any callbacks, so we never
entered this block.
Assignee | ||
Comment 2•4 years ago
|
||
This patch consists of the changes generated by running
./mach static-analysis check --fix
on netwerk/dns
after adding the
modernize-use-default-member-init
clang-tidy lint.
Some additional changes were made by hand to ensure consistent results.
This patch ensures that all member variables are initialized in the header,
so when adding or changing constructors we don't miss one resulting in
uninitialized memory.
Depends on D109338
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D109339
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D109588
Assignee | ||
Comment 5•4 years ago
|
||
A TRR request is created and dispatched to the handling thread.
If we want to cancel it, we may do so before the runnable has been handled
and there's no HTTP channel - so the cancel was a NO-OP.
Here we add mCancelled which is consulted in SendHTTPRequest to check
if the request has already been cancelled.
Depends on D109589
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D109590
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D109591
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D109592
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D109593
Assignee | ||
Comment 10•4 years ago
|
||
Depends on D109594
Assignee | ||
Comment 11•4 years ago
|
||
Depends on D109595
Assignee | ||
Comment 12•4 years ago
|
||
Depends on D109596
Assignee | ||
Comment 13•4 years ago
|
||
Depends on D109597
Assignee | ||
Comment 14•4 years ago
|
||
Depends on D109598
Assignee | ||
Comment 15•4 years ago
|
||
Depends on D109599
Assignee | ||
Comment 16•4 years ago
|
||
Depends on D109600
Comment 17•4 years ago
|
||
Comment 18•4 years ago
|
||
Backed out for causing windows xpcshell failures on test_trr_cancel.js
Failure log: https://treeherder.mozilla.org/logviewer?job_id=335595411&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/dae7fefaf8278e53d864391a50ae947d5ce5747a
Assignee | ||
Updated•4 years ago
|
Comment 19•4 years ago
|
||
Comment 20•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/050ea2cafe11
https://hg.mozilla.org/mozilla-central/rev/8b18a2ef9994
https://hg.mozilla.org/mozilla-central/rev/5f509655c215
https://hg.mozilla.org/mozilla-central/rev/60897816589a
https://hg.mozilla.org/mozilla-central/rev/454a28c52dea
https://hg.mozilla.org/mozilla-central/rev/932669e39fee
https://hg.mozilla.org/mozilla-central/rev/de03852907a9
https://hg.mozilla.org/mozilla-central/rev/5f229ee8e18e
https://hg.mozilla.org/mozilla-central/rev/a613ba2c47ce
https://hg.mozilla.org/mozilla-central/rev/46d002eac860
https://hg.mozilla.org/mozilla-central/rev/966cdbee3d9a
https://hg.mozilla.org/mozilla-central/rev/4ae857f4eb1c
https://hg.mozilla.org/mozilla-central/rev/831b2508adb8
https://hg.mozilla.org/mozilla-central/rev/e72097442c6e
https://hg.mozilla.org/mozilla-central/rev/4d02b3bf9c38
https://hg.mozilla.org/mozilla-central/rev/fcbcbedc28f4
Description
•