Closed Bug 1492466 Opened 6 years ago Closed 6 years ago

TVHeadend broken by TRR

Categories

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

x86_64
Linux
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox64 --- affected

People

(Reporter: heftig, Assigned: bagder)

Details

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

Attachments

(3 files)

Setup: Tvheadend (from git master) running on an intranet host http://angel:9981/ Firefox Nightly With network.trr.mode=0, 2, 4 or 5, everything is fine. With network.trr.mode=3, connection fails, as expected. With network.trr.mode=1, loading the page succeeds but most of the interface does not load. Its log says: > There seems to be a problem with the live update feed from Tvheadend. Trying to reconnect... Followed by several "Reconnected to Tvheadend". These seem to be messages from Tvheadend's "comet" WebSocket client, which repeatedly attempts to connect to ws://angel:9981/comet/ws . As soon as devtools is opened, the next websocket attempt succeeds. If devtools is open when the page is loaded, it works as normal.
Attached file trr-2.log
nsHostResolver:5 log for trr.mode=2, which works.
Attached file trr-1.log
nsHostResolver:5 log for trr.mode=1, which fails.
Attached file trr-1d.log
nsHostResolver:5 log for trr.mode=1 started with --devtools, which works.
Assignee: nobody → daniel
Priority: -- → P2
Whiteboard: [necko-triaged][trr]
Mode 1 is truly a race between a TRR resolve and a native resolve and the first result will be used. Positive or negative. It makes mode 1 very ineffective and annoying for this kind of internal host names since whenever TRR happens to respond faster, it will return a negative result, while all the times the native response is faster you get positive result an one or more IP addresses to use. Negative responses are also cached for a while (60 seconds by default) by Firefox so even resolves done immediately following a failed resolve will return a negative response. So, I'm afraid this is actually working as intended. I wrong strongly recommend using mode 2 (trr-first) instead since that will properly fallback and do a native resolve in case TRR fails.
The race mode really shouldn't be used if fallback behavior is wanted. This is also why we recommend mode 2, the trr-first that falls back to native when it detects problems.
Status: NEW → RESOLVED
Closed: 6 years ago
QA Contact: jduell.mcbugs
Resolution: --- → WONTFIX
QA Contact: jduell.mcbugs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: