Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108689
| From | Grant Edwards <grant.b.edwards@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: OT: limit number of connections from browser to my server? |
| Date | 2016-05-16 19:33 +0000 |
| Message-ID | <mailman.31.1463427306.19823.python-list@python.org> (permalink) |
| References | <nhcr5g$o1k$1@ger.gmane.org> <nhd0bn$isq$1@ger.gmane.org> <nhd7a4$je7$4@ger.gmane.org> |
On 2016-05-16, Peter Otten <__peter__@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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 19:33 +0000 Re: OT: limit number of connections from browser to my server? Steven D'Aprano <steve@pearwood.info> - 2016-05-17 12:30 +1000
csiph-web