How to solve Chrome's 6 connection limit when using xhr polling

后端 未结 1 1740
暗喜
暗喜 2020-11-30 07:47

I recently found out that Chrome seems to have a connection limit of 6 ( Chrome hangs after certain amount of data transfered - waiting for available socket ) unfortunately

相关标签:
1条回答
  • 2020-11-30 08:30

    Use a real webSocket, rather than XHR Polling. webSocket connections do not count toward the http connection limit to the same origin.

    There is a separate global limit to how many webSocket connections can be created, but it is a high number (200 in Firefox - not sure what it is exactly in Chrome).

    Here are some references on this topic:

    • Max parallel http connections in a browser?

    • Maximum concurrent connections to the same domain for browsers

    • HTTP simultaneous connections per host limit… are per tab, browser instance or global?.

    0 讨论(0)
提交回复
热议问题