Open Bug 1222338 Opened 10 years ago Updated 3 years ago

301 + DNS failure leads to massive CPU spike

Categories

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

defect

Tracking

()

People

(Reporter: Dolske, Unassigned)

Details

(Whiteboard: [necko-backlog])

Attachments

(1 file)

I just registered a domain, and tried loading it before DNS was fully propagated (because I am impatient). I was a little surprised to see Firefox jump to 200% CPU when doing this. At first, using devtools, it looked like an infinite redirect loop between www.site.com and site.com... But it's a little more subtle. From my command line, "curl site.com" results in a "curl: (6) Could not resolve host: site.com", whereas "curl www.site.com" results in a 301 to site.com (non-www). So I think what's happening is that Firefox sees the no-www site.com lookup fail, helpfully tries to load www.site.com instead, and gets 301'd back to where it started. Lather rinse repeat. Seems like Firefox should not do the "helpful" www fixup when it knows there's a 301 loop, or when it's not the original URL entered in the URL bar. [I have my Dreamhost config set up so that the 301 to the non-www host is expected. Presumably this specific case will start working as soon as the non-www DNS starts to resolve correctly.]
Whiteboard: [necko-backlog]
Component: Networking: HTTP → Networking: DNS
I would like to patch this bug. The solution would actually be to check if there's a 301 loop and not do the "helpful" www fixup?
Priority: -- → P1
Priority: P1 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: