Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: OT: limit number of connections from browser to my server? Date: Tue, 17 May 2016 02:52:08 +1000 Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de k/XvXXWDMEP8k6iF4Jsoyw/CqY+raISf4NpgDtFK7KUA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'static': 0.03; 'rejected': 0.05; 'correct.': 0.07; 'subject:number': 0.07; 'cc:addr:python- list': 0.09; 'agree,': 0.09; 'it;': 0.09; '2016': 0.16; 'apology': 0.16; 'chris,': 0.16; 'elsewhere.': 0.16; 'file).': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:limit': 0.16; 'subject:server': 0.16; 'varies': 0.16; 'webpage,': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'work,': 0.21; 'am,': 0.23; 'second': 0.24; 'header:In-Reply- To:1': 0.24; 'external': 0.27; 'message-id:@mail.gmail.com': 0.27; 'device': 0.28; 'fine': 0.28; 'for,': 0.29; "people's": 0.29; 'asked': 0.29; 'connection': 0.30; 'work.': 0.30; 'connections': 0.30; 'option': 0.31; 'embedded': 0.32; 'expensive': 0.32; 'getting': 0.33; 'done,': 0.33; 'case,': 0.34; 'tue,': 0.34; 'gets': 0.35; 'received:google.com': 0.35; 'something': 0.35; 'received:74.125.82': 0.35; "isn't": 0.35; 'but': 0.36; 'too': 0.36; 'there': 0.36; 'serve': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'stuff': 0.38; 'someone': 0.38; 'files': 0.38; 'google': 0.39; 'why': 0.39; 'subject:from': 0.39; 'some': 0.40; 'high': 0.60; 'your': 0.60; 'customer': 0.62; 'face': 0.64; 'internet': 0.70; 'chrisa': 0.84; 'entity.': 0.84; 'everything,': 0.84; 'suggestion,': 0.84; 'ultimately,': 0.84; 'willingly': 0.84; 'to:none': 0.91; 'belief': 0.91; 'cost,': 0.91; 'favour': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=Qgm6YHzeD79T4ijAkGiwG17+wK/DZLXMhP0H2vjpqtA=; b=aWa/QQ0BU472EC/5H4yDgGx78YNw8WviDdHUz8t9Qfi08eOar/IPkGSfkRjcrVJ/0U mMOrBNKR0/trX5EJeTYkxCeBTuvb76dOTaVlaDb5COEw5Ox/AgerHYP/4mrCztKjNZCK QUh2zY0lHsBqCZS/OqhQ2Lq28mGB78s13QIkNJHxLJKN1ZIOGoyG4oBIhEznAOZIi7yC CqPOYNFfH2TXksg/7C2TmI/L2iOZz6LvawXMTr9330fm6u4NnXptUspvFhShsuS2m+l2 XASxPtjUm2UTzb4h0gK3X9qLV1ctjuhv4kiJpzzlz2aCvgrEJGfITpAoJ+wiI+qBpBbA 478w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=Qgm6YHzeD79T4ijAkGiwG17+wK/DZLXMhP0H2vjpqtA=; b=XV2vOOSRA/Z6KCyVmSkzRAdcrtCgC58R3KgZafsVXHrY9TvBofH6ws+UTgSxlL6fgi 8y94Plr6It5dPLazwI+YjHqqe5eY535idMiLI0Wy9lDJN1SNV3EIWuBYOeJWCYM2u0ZO YXvSPo8zggyMzVm80a6VWGtNc3xCQsB8C6OfVLl+W4Es9NovN28YyeWITZx2k3KhcKGh ZI3GTlDA7lJIJBUkgXrVdEz08AeCaHR+1kHTOU4kqt+hAx3GPSzF34XfmXX+z+GmJDS8 wP4wPib3gwqxT87MMPiKhdtgIOJ2eY/CxQSRl0QyE9vv01aYoPIGRTcCSlPypHwPQ6Gy ElHg== X-Gm-Message-State: AOPr4FWVxabcb6ZC48TOJBmQjruZ/2JveiXvMf72JaNUpWai2vsPlAEKQd6nf6AU8GlbaDdL1LL40eGV+NKrVA== X-Received: by 10.194.186.237 with SMTP id fn13mr31889211wjc.47.1463417528843; Mon, 16 May 2016 09:52:08 -0700 (PDT) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com comp.lang.python:108673 On Tue, May 17, 2016 at 2:34 AM, Rob Gaddi wrote: >> The solution might actually be to move all your static files >> elsewhere. Slap 'em up onto github.io or something, and then the >> browser is free to make all the parallel connections it likes; your >> embedded device can just serve the stuff that actually varies >> (presumably the main HTML file). I know that isn't what you asked for, >> but it's something to consider :) >> >> ChrisA > > Oooof. Not to be rude, Chris, but your "software guy" is showing. > Grant's got the right of it; if you're shipping a box with an RJ-45 and > a webpage, and you want the customer to be able to always make it > work, then it needs to be a self-contained entity. The belief that your > external dependancies will always be there is why leftpad was able to > break everything, and why Google just bricked a bunch of people's > expensive Revolv Hubs. I agree, but I also make no apology for suggesting the option of getting someone else to do some of the work. In this case, it can be rejected for the exact reason you cite (dependencies are a cost, and in this case way too high a cost), and that's fine and correct. Ultimately, if the job gets done, everything else is implementation detail, with consequences - and I know a lot of people who'll willingly sacrifice "reliability in the face of an internet connection outage" in favour of "less than fifteen second response time". Hence my suggestion, albeit couched in "might be" and "something to consider". :) ChrisA