On 2016-05-16, Peter Otten <__pete...@web.de> wrote: > Grant Edwards wrote: > >> This is not Python specific, though I'm turning to Python to do some >> experimentation and to try to prototype a solution. >> >> Is there any way to limit the number of connections a browser uses to >> download a web page? Browser writers seems to assume that all https >> servers are massively parallel server farms with hardware crypto >> support. >> >> So, when a browser wants to load a page that has the main html file, a >> css file, a javascript library or two, and a few icons and background >> bitmaps, they browser opens up a half-dozen SSL connections in >> parallel. > > [brainstorm-mode on] > > I think HTTP/2 allows multiple requests over a single TCP connection.
HTTP 1.1 did also. And our server supports it. The problem is that modern browsers won't wait and send requests serially over a single connection. They try to "optimize" page load times by opening as many connections as they cat right away and requesting everything in parallel. When the server has a single CPU, that just wastes a lot of time -- particulary when connections have a high per-connection overhead like SSL does. -- Grant Edwards grant.b.edwards Yow! Is this TERMINAL fun? at gmail.com -- https://mail.python.org/mailman/listinfo/python-list