Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108749
| 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 <grant.b.edwards@gmail.com> |
| 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 | <mailman.66.1463510545.19823.python-list@python.org> (permalink) |
| References | <nhcr5g$o1k$1@ger.gmane.org> <CAPTjJmrTf5iCe8sN8WrouhBV867UZF4DgFOC9OFkhHSxZoajNw@mail.gmail.com> <mailman.18.1463415352.19823.python-list@python.org> <nhcsps$94g$1@dont-email.me> <CAPTjJmrq0SYicwL-wZSMxpn8zSg=pYm90GOfcq+XiQxo6AJ1Sw@mail.gmail.com> <mailman.22.1463417531.19823.python-list@python.org> <573a86de$0$1587$c3e8da3$5496439d@news.astraweb.com> <nhfild$37n$1@dont-email.me> <nhfom4$b2s$1@ger.gmane.org> |
| X-Trace | news.uni-berlin.de Zp0q8j8kMImlHg+QrkluLA+FEPhfW5wrVgz2B3IO+IDQ== |
| 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.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 <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 | <nhfom4$b2s$1@ger.gmane.org> |
| X-Mailman-Original-References | <nhcr5g$o1k$1@ger.gmane.org> <CAPTjJmrTf5iCe8sN8WrouhBV867UZF4DgFOC9OFkhHSxZoajNw@mail.gmail.com> <mailman.18.1463415352.19823.python-list@python.org> <nhcsps$94g$1@dont-email.me> <CAPTjJmrq0SYicwL-wZSMxpn8zSg=pYm90GOfcq+XiQxo6AJ1Sw@mail.gmail.com> <mailman.22.1463417531.19823.python-list@python.org> <573a86de$0$1587$c3e8da3$5496439d@news.astraweb.com> <nhfild$37n$1@dont-email.me> |
| Xref | csiph.com comp.lang.python:108749 |
Show key headers only | View raw
On 2016-05-17, Rob Gaddi <rgaddi@highlandtechnology.invalid> 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!!
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: OT: limit number of connections from browser to my server? Chris Angelico <rosuav@gmail.com> - 2016-05-17 02:15 +1000
Re: OT: limit number of connections from browser to my server? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2016-05-16 16:34 +0000
Re: OT: limit number of connections from browser to my server? Chris Angelico <rosuav@gmail.com> - 2016-05-17 02:52 +1000
Re: OT: limit number of connections from browser to my server? Steven D'Aprano <steve@pearwood.info> - 2016-05-17 12:50 +1000
Re: OT: limit number of connections from browser to my server? Chris Angelico <rosuav@gmail.com> - 2016-05-17 13:02 +1000
Re: OT: limit number of connections from browser to my server? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-17 15:22 +1000
Re: OT: limit number of connections from browser to my server? Gene Heskett <gheskett@wdtv.com> - 2016-05-17 01:26 -0400
Re: OT: limit number of connections from browser to my server? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2016-05-17 16:59 +0000
Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-17 18:42 +0000
Re: OT: limit number of connections from browser to my server? Paul Rubin <no.email@nospam.invalid> - 2016-05-29 22:03 -0700
Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-31 15:31 +0000
Re: OT: limit number of connections from browser to my server? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-17 18:28 -0400
Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-18 13:58 +0000
Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 19:19 +0000
Re: OT: limit number of connections from browser to my server? Rob Gaddi <rgaddi@highlandtechnology.invalid> - 2016-05-16 20:09 +0000
Re: OT: limit number of connections from browser to my server? Paul Rubin <no.email@nospam.invalid> - 2016-05-16 13:41 -0700
Re: OT: limit number of connections from browser to my server? Grant Edwards <grant.b.edwards@gmail.com> - 2016-05-16 21:32 +0000
Re: OT: limit number of connections from browser to my server? Paul Rubin <no.email@nospam.invalid> - 2016-05-29 22:00 -0700
csiph-web