為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Is there a way to limit network.http.max-persistent-connections-per-server to 1? I tried it but Firefox still seems to open 2 simultaneous connections

more options

In about:config I changed "network.http.max-persistent-connections-per-server" from 6 to 1, but sniffing with Wireshark I can still see 2 simultaneous connections. Firefox Version: 56.0.1 (64-bit) OS: Windows 8.1 Pro x64

In about:config I changed "network.http.max-persistent-connections-per-server" from 6 to 1, but sniffing with Wireshark I can still see 2 simultaneous connections. Firefox Version: 56.0.1 (64-bit) OS: Windows 8.1 Pro x64

所有回覆 (5)

more options

jeanvst said

In about:config I changed "network.http.max-persistent-connections-per-server" from 6 to 1, but sniffing with Wireshark I can still see 2 simultaneous connections.

Hi  !

Just to make sure : after you changed the value of that preference, did you close and then restart Firefox  ?

more options

Happy112 said

jeanvst said
In about:config I changed "network.http.max-persistent-connections-per-server" from 6 to 1, but sniffing with Wireshark I can still see 2 simultaneous connections.

Hi  !

Just to make sure : after you changed the value of that preference, did you close and then restart Firefox  ?

Hi, thanks for the reply.

I did restart Firefox. There was some effect on the configuration, since the first capture showed 6 connections, and after the change, 2 connections.

I repeated the test today and got an interesting (or weird?) result. If the destination address is on LAN (eg 192.168.1.x), Firefox opens a single connection as desired. If the destination is on WAN (eg 200.x.x.x), Firefox opens 2 connections.

Is there any other parameter I should change?

more options

In the following article, could you expand the Prefetching section and disable:

  • Link prefetching
  • Speculative pre-connections

How to stop Firefox from making automatic connections

由 jscher2000 - Support Volunteer 於 修改

more options

jscher2000 said

In the following article, could you expand the Prefetching section and disable:
  • Link prefetching
  • Speculative pre-connections
How to stop Firefox from making automatic connections

As suggested, I did the following changes: - network.prefetch-next = false - network.dns.disablePrefetch = true - network.http.speculative-parallel-limit = 0

However, Firefox is still making 2 connections.

more options

If you do not get an explanation here, you may want to file a bug.

https://bugzilla.mozilla.org/enter_bug.cgi