Closed Bug 1709703 Opened 4 years ago Closed 4 years ago

Requests blocked despite connection maximum not reached

Categories

(DevTools :: Netmonitor, defect)

Firefox 90
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1526974

People

(Reporter: pmenzel+bugzilla.mozilla.org, Unassigned)

Details

Attachments

(5 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0

Steps to reproduce:

With Nightly 90.0a1 (20210504092024), open several Web sites, and analyze the request timings in the developer tools.

Actual results:

Several requests are shown to be blocked. From section Request Timing from the Web page Network request details:

Time spent in a queue waiting for a network connection.

The browser imposes a limit on the number of simultaneous connections that
can be made to a single server. In Firefox this defaults to 6, but can be
changed using the network.http.max-persistent-connections-per-server
preference. If all connections are in use, the browser can't download more
resources until a connection is released.

Expected results:

As the number of connections is not depleted (just for checking I increased them to 64, and no difference), there is something fishy going on.

Summary: Requests blocked despite enough threads → Requests blocked despite connection maximum not reached

The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Netmonitor
Product: Firefox → DevTools

Thanks for the report, Paul.

It looks like some requests are marked as blocked from no reason (unexpectedly)?

Can you please provide a test page (attach it to this bug report or just provide an URL), so we can try to reproduce the problem on our machines?
I don't see the problem when loading e.g. google.com

Thank you!

Flags: needinfo?(pmenzel+bugzilla.mozilla.org)

The screenshot was done with https://lwn.net, and https://blog.fefe.de, which both use HTTP/1.1. But, it’s also happening with https://www.google.de and https://www.mozilla.com.

Flags: needinfo?(pmenzel+bugzilla.mozilla.org)
Attached image image.png

Thanks for the screenshots. So, the problem is about "Blocking time", not entirely blocked requests (due to CORS, etc.)

My network.http.max-persistent-connections-per-server is 6 and I am seeing the following (see the attached screenshot) when loading https://lwn.net/

The top one is correct shows that the 7th request is blocked
The bottom one is also correct, the 7th request starts after all the previous ones are finished, so no blocking is needed.

But, the screenshot attached to the original report shows weird state.
Obviously, depends also how net connection is fast, so might be harder to repro.

Bomsy, can you reproduce the issue on your machine?

Flags: needinfo?(hmanilla)

Paul, I am marking this as duplicate of bug 1526974
Feel free to reopen if you don't think it's a dup.

Thank you.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

Hmm, not sure. In my examples, the first request is already blocked, isn’t it?

I am reading this comment:
https://bugzilla.mozilla.org/show_bug.cgi?id=1526974#c33
"I have a new log, where every new connection is blocked"

I am waiting for the HAR file (or a screenshot)

The underlying problem seems to be the same (we should keep in mind various flavors of it when testing it)

Comment 33. You are right. Thank you for digging through it. ;-)

http.max-persistent-connections-per-proxy = 32 in my setup.

Flags: needinfo?(hmanilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: