Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: OT: limit number of connections from browser to my server? Date: Tue, 17 May 2016 18:42:12 +0000 (UTC) Lines: 39 Message-ID: References: <573a86de$0$1587$c3e8da3$5496439d@news.astraweb.com> X-Trace: news.uni-berlin.de Zp0q8j8kMImlHg+QrkluLA+FEPhfW5wrVgz2B3IO+IDQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'cache': 0.05; 'subject:number': 0.07; 'atom': 0.09; 'compute': 0.09; 'forcing': 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; 'do,': 0.15; '(which,': 0.16; '*almost*': 0.16; 'mean,': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'seconds.': 0.16; 'subject:limit': 0.16; 'subject:server': 0.16; 'tcp': 0.16; 'wrote:': 0.16; 'memory': 0.17; 'processor': 0.18; 'ssl': 0.18; 'stick': 0.18; 'clock': 0.22; 'trying': 0.22; '(like': 0.23; "i've": 0.25; 'header:User- Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'external': 0.27; 'room': 0.27; 'have,': 0.27; 'forces': 0.29; 'that.': 0.30; 'connections': 0.30; 'embedded': 0.32; 'expensive': 0.32; 'maybe': 0.33; 'ram': 0.33; 'case,': 0.34; 'worked': 0.34; 'running': 0.34; 'could': 0.35; 'newer': 0.35; 'tasks': 0.35; 'something': 0.35; 'but': 0.36; 'there': 0.36; 'serve': 0.36; 'faster': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'things': 0.38; 'files': 0.38; 'copying': 0.38; 'whatever': 0.39; 'subject:from': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'your': 0.60; 'customer': 0.62; 'course': 0.62; 'granted': 0.63; 'more': 0.63; 'times': 0.63; 'box.': 0.66; 'paid.': 0.66; '2-3': 0.72; 'book.': 0.72; 'bus,': 0.84; 'difference.': 0.84; 'hard.': 0.84; 'high- end': 0.84; 'localized': 0.84; 'samsung': 0.84; 'toy': 0.84; 'edwards': 0.91; 'walking': 0.91; 'hand,': 0.97 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <573a86de$0$1587$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:108749 On 2016-05-17, Rob Gaddi wrote: > >> How can you not serve a web page over your LAN in 15s? >> >> I mean, you could *almost* do it by hand, copying the files onto a >> USB stick and walking them across the room in 15 seconds. Maybe 30. > > Simple, because embedded web servers running on toy microprocessors are > HARD. 40MHz with multiple MB of RAM is pretty high-end in my book. I've worked on projects where the clock speed was in KHz, the supply current was measrued in micro-Amps, and there were a few KB of RAM. Of course you don't try to do TCP and SSL on something like that. > When you're trying to work with whatever browser the customer may > have, you have no control over the number of simultaneous connections > it will try to make to your box. If you don't allow those connections > it can cause huge stalls by forcing the TCP layer to time out. If you > do, in Grant's case, it forces you to perform tons of expensive > public-key crypto on a 40 MHz processor (which, hmmm, external memory > bus, ~40 MHz... Coldfire?). The 40MHz one is a Samsung ARM7TDMI. There's a newer model with a 133MHz Cortex-M3. For most things it's 2-3 times faster than the ARM7, but the ARM7 has an I/D cache and the M3 doesn't. So there are few highly localized tasks where there's not a lot of difference. > A lot of things you can take for granted on a compute monster (like > a Chromebook or Atom based laptop) get much more complicated when > you're resource constrained. And that's what keeps me paid. :) -- Grant Edwards grant.b.edwards Yow! I know th'MAMBO!! at I have a TWO-TONE CHEMISTRY gmail.com SET!!