persistent-connection

Overcoming max persistent connections with different ports?

旧巷老猫 提交于 2019-12-01 21:02:04
问题 Following on from Max parallel http connections in a browser?, browsers can only have a few connections per host. I know this can be worked around using subdomains, but can I get around this by using different ports for the same host? So would the following allow a browser to triple its connections (assuming something was listening on each port)? www.example.com www.example.com:8080 www.example.com:8081 Thanks 回答1: Yes, using a different port number will cause the browser to treat it as a

Overcoming max persistent connections with different ports?

你离开我真会死。 提交于 2019-12-01 19:13:08
Following on from Max parallel http connections in a browser? , browsers can only have a few connections per host. I know this can be worked around using subdomains, but can I get around this by using different ports for the same host? So would the following allow a browser to triple its connections (assuming something was listening on each port)? www.example.com www.example.com:8080 www.example.com:8081 Thanks Yes, using a different port number will cause the browser to treat it as a different host, just like using a subdomain. I have not been able to find an authoritative source on how this

Max parallel http connections in a browser?

本小妞迷上赌 提交于 2019-11-25 22:14:35
问题 I am creating some suspended connections to an HTTP server (comet, reverse ajax, etc). It works ok, but I see the browser only allows two suspended connections to a given domain simultaneously. So if a user is looking at my website in Tab1 of their browser, then also tries loading it in Tab2, they\'ve used up the two allowed connections to my site. I think I can do some wildcard domain thing, where I have my http server resolve any address to my site like: *.example.com/webapp -> 192.0.2.1