Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108689
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| 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 | Mon, 16 May 2016 19:33:24 +0000 (UTC) |
| Lines | 33 |
| 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> |
| X-Trace | news.uni-berlin.de z8tArAA9QeQkmxFSKDkqWQQqxSFOmDhMX0SB+d3IFtpg== |
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'subject:number': 0.07; 'https': 0.09; 'page?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:qwest.net': 0.09; 'wastes': 0.09; 'python': 0.10; 'assume': 0.11; 'file,': 0.15; 'prototype': 0.15; 'massively': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'specific,': 0.16; 'subject:limit': 0.16; 'subject:server': 0.16; 'tcp': 0.16; 'two,': 0.16; 'wrote:': 0.16; 'ssl': 0.18; 'solution.': 0.18; 'load': 0.20; 'library': 0.20; 'browsers': 0.22; 'seems': 0.23; 'requests': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'css': 0.27; 'cat': 0.29; 'allows': 0.30; "i'm": 0.30; 'connections': 0.30; 'skip:[ 10': 0.31; 'problem': 0.33; 'http': 0.33; 'server': 0.34; 'so,': 0.35; 'supports': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; "won't": 0.38; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'high': 0.60; 'times': 0.63; 'our': 0.64; 'limit': 0.65; 'fun?': 0.72; 'connection.': 0.76; 'cpu,': 0.84; 'farms': 0.84; 'otten': 0.84; 'edwards': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| X-Gmane-NNTP-Posting-Host | 67-130-15-94.dia.static.qwest.net |
| User-Agent | slrn/1.0.2 (Linux) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <nhd7a4$je7$4@ger.gmane.org> |
| X-Mailman-Original-References | <nhcr5g$o1k$1@ger.gmane.org> <nhd0bn$isq$1@ger.gmane.org> |
| Xref | csiph.com comp.lang.python:108689 |
Show key headers only | View raw
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