Closed Bug 1947414 Opened 29 days ago Closed 25 days ago

dnsGracePeriod is not applied correctly and has no effect

Categories

(Core :: Networking: DNS, defect, P2)

defect

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox-esr128 --- unaffected
firefox135 --- wontfix
firefox136 --- wontfix
firefox137 --- fixed

People

(Reporter: omansfeld, Assigned: omansfeld)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [necko-priority-next][necko-triaged])

Attachments

(1 file)

While setting up the dns cache experiment (bug 1937022) we noticed that the grace period is set to 0 here, which prevents that pref to have effect at all.

This needs to be rewritten so the grace period is actually applied.

Whats the reason we are setting it to zero there and ignoring the pref?

Flags: needinfo?(valentin.gosu)
Blocks: 1937022
Assignee: nobody → omansfeld
Whiteboard: [necko-priority-next]

This was a regression from mozilla-central @ 9872b8d761151528083c25170ef0a275f3228277
Before that we only set sGetTtlEnabled if #ifdef DNSQUERY_AVAILABLE.

To fix this we need 2 things:

Severity: -- → S3
Flags: needinfo?(valentin.gosu)
Keywords: regression
Priority: -- → P2
Regressed by: 1936996
Whiteboard: [necko-priority-next] → [necko-priority-next][necko-triaged]

Set release status flags based on info from the regressing bug 1936996

We set grace=0 before for requests that had a TTL. Now that we want to experiment with bigger grace periods we don't zero the grace period at all anymore, no matter if there is a TTL or not.

Also cleaned up the (now unnessecary) nested if condition and removed double allocation of TTL data.

Moved fixing network.dns.get-ttl to it's own bug as it isn't necessary to make the grace period work. See Bug 1948018.

Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/904bf2b1dbcb grace period is now actually applied r=necko-reviewers,valentin
Status: NEW → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch

The patch landed in nightly and beta is affected.
:omansfeld, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox136 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(omansfeld)
Flags: needinfo?(omansfeld)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: