Closed Bug 1697603 Opened 4 years ago Closed 4 years ago

Long running network requests cause Firefox to not load any other URL

Categories

(Core :: Networking, defect)

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: whimboo, Unassigned)

References

(Blocks 1 open bug)

Details

I was running the following simple Marionette test locally (MacOS Big Sur), and I can always experience extreme long waiting times for the socket thread when initiating a new navigation directly after startup of Firefox.

from marionette_harness import MarionetteTestCase

class TestCase(MarionetteTestCase):
    def test_expired(self):
        self.marionette.navigate("https://expired.badssl.com/")

You can run this test yourself by saving it as .py file and run ./mach marionette-test %path%.

Interestingly that long delay only happens when I run the test with a self-build artifact build but not with a Firefox Nightly build.

Here two profiles that demonstrate the difference.

As it looks like it is the request to the following URL that takes that long (26.2s) and delays all other network requests (manual page loads in any other tab).

https://shavar.services.mozilla.com/downloads?client=Firefox&appver=88.0a&pver=2.2

Valentin or Dragana, any idea what's wrong here? And it's not visible in a Nightly build?

Flags: needinfo?(valentin.gosu)
Flags: needinfo?(dd.mozilla)

Please note that after a restart of Firefox due to a pending upgrade the above reported behavior cannot be reproduced right now. But I hope that the above profiles might give an idea what to specifically look at when I'm seeing it again. Thanks.

Still no luck in reproducing it?

In profile I do nor see anything. It would be good to record the socket threaded as well next time.

Flags: needinfo?(dd.mozilla)

I haven't seen this problem again. As such I will close the bug as incomplete and reopen it when it can be seen again.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(valentin.gosu)
Resolution: --- → INCOMPLETE

Hi,
It seems that the problem exists (Firefox 88.0.1, MacOS Big Sur (Intel)). I have a PiHole as my DNS server. It blocks some ads/telemetry etc. servers. If I try to open a website with a lot of blocked servers in one tab, I cannot open any other website in other tabs till the first site is loaded.
See profiler log: https://share.firefox.dev/3hmY2ZP

See Also: → 1706899
You need to log in before you can comment on or make changes to this bug.