Closed Bug 1495537 Opened 6 years ago Closed 6 years ago

Drop TRR timeout from 3 seconds to something close to 1 sec

Categories

(Core :: Networking: DNS, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla64
Tracking Status
firefox63 --- fixed
firefox64 --- fixed

People

(Reporter: jduell.mcbugs, Assigned: bagder)

Details

(Whiteboard: [necko-triaged][trr])

Attachments

(1 file)

Right now we wait for 3 seconds for TRR before marking requests failed and falling back to regular DNS.  

Proper fix is bug 1495523 but meanwhile we should drop the timeout to something that gets hit <1% of the time, but is still shorter than 3 Sec.  98% of Cloudflare TRR requests take <1sec, so Daniel and I are thinking dropping the timeout to 1.5 seconds would make sense here. 

Should be a one-liner--let's land and uplift to beta if possible.
Priority: -- → P1
Whiteboard: [necko-triaged][trr]
99.15% of all TRR requests are done within 1.56 seconds (in beta 63) and
1500 milliseconds is already a very long time to wait for a resolve to
fail... The median is 44 ms and 95th percentile is at 471 ms.

MozReview-Commit-ID: CICBAA0cEBd
Comment on attachment 9013427 [details]
bug 1495537 - lower the default trr request-timeout to 1500 ms

Dragana Damjanovic [:dragana] has approved the revision.
Attachment #9013427 - Flags: review+
Pushed by daniel@haxx.se:
https://hg.mozilla.org/integration/autoland/rev/26d8702b46cd
lower the default trr request-timeout to 1500 ms r=dragana
https://hg.mozilla.org/mozilla-central/rev/26d8702b46cd
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Comment on attachment 9013427 [details]
bug 1495537 - lower the default trr request-timeout to 1500 ms

[Beta/Release Uplift Approval Request]

Feature/Bug causing the regression: Bug 1495537

User impact if declined: For TRR-users with crappy connections or bad DoH server, a less nimble browser.

Is this code covered by automated tests?: No

Has the fix been verified in Nightly?: Yes

Needs manual test from QE?: No

If yes, steps to reproduce: 

List of other uplifts needed: None

Risk to taking this patch: Low

Why is the change risky/not risky? (and alternatives if risky): It's just a pref change

String changes made/needed: none
Attachment #9013427 - Flags: approval-mozilla-beta?
Comment on attachment 9013427 [details]
bug 1495537 - lower the default trr request-timeout to 1500 ms

Pref change to fix a bug in a 63 feature, uplift approved for 63 beta 12, thanks.
Attachment #9013427 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: