Remix.run Logo
kevg123 4 hours ago

> As the packet loss rate increases, HTTP/2 performs less and less well. At 2% packet loss (which is a terrible network quality, mind you), tests have proven that HTTP/1 users are usually better off - because they typically have up to six TCP connections to distribute lost packets over. This means for every lost packet the other connections can still continue.

Why doesn't HTTP/2 use more than one socket?

thwarted 4 hours ago | parent [-]

Because one thing it tries to optimize for is avoiding TLS session negotiation.

kevg123 3 hours ago | parent [-]

Makes sense. One idea would be if the browser could detect packet loss (e.g. netstat -s and look for TCP retransmissions, and equivalent on other OSes) and open more sockets if there is.