Closed Bug 1652713 Opened 5 years ago Closed 4 years ago

Handle connection errors with ECH and HTTPSSVC

Categories

(Core :: Networking: HTTP, task, P2)

task

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: dragana, Assigned: kershaw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

If a connection to SvcDomainName with a echconfig fails, Firefox should retry with a different SvcDomainName.

If all SvcDomainNames advertise a echconfig, Firefox should never fall back to a connection to the origin server. Firefox should try all available SvcDomainNames. We should have a pref that allows fallback to a connection to the origin server directly. We may need to slowly rollout the strict no-fallback-to origin policy. If the pref is disable the fallback should be the same as in the following case.

If there are SvcDomainNames that do not advertise a echconfig, Firefox should try min(MAX_ECH_TRY, <number of available SvcDomainNames with echconfig>) configurations and afterwards connect to the origin directly.

Let MAX_ECH_TRY be 1.

The fallback mechanism should be executed if the original transaction has been canceled.

(In reply to Dragana Damjanovic [:dragana] from comment #0)

The fallback mechanism should be executed if the original transaction has been canceled.

this sentence should be:
The fallback mechanism should NOT be executed if the original transaction has been canceled.

I forgot to add:
a server may reject ech and return a new echconfig that should be used for a new transport connection. In this case, a new nsHttpconnectionInfo with the same RouteHost and RoutePort and the new echconfig should be created. The new nsHttpconnectionInfo should be used to create a new transport connection instead of using another SvcDomainName.

We will need to coordinate with the nss team to create a API.

Assignee: nobody → kershaw
Status: NEW → ASSIGNED
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/395117cd7b25 Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Flags: needinfo?(kershaw)
Pushed by kjang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bde69d944812 Implement fallback mechanism when echConfig is enabled, r=dragana,necko-reviewers
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: