Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21278

Re: python simple web server

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python': 0.08; '(it': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.10; 'configure': 0.10; '404': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'lan': 0.16; 'localhost': 0.16; 'received:wlfraed': 0.16; 'subject:server': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; 'this:': 0.16; 'stick': 0.18; 'appears': 0.19; 'url:home': 0.21; 'ancient': 0.23; 'way?': 0.23; 'static': 0.24; 'developing': 0.25; 'code': 0.26; 'tried': 0.27; 'subject:web': 0.28; "i'm": 0.28; '(and': 0.30; 'server': 0.30; 'jones': 0.30; 'returning': 0.32; "i've": 0.32; 'that,': 0.32; 'tue,': 0.32; 'there': 0.33; "can't": 0.33; 'test': 0.34; 'file': 0.34; 'header:X-Complaints-To:1': 0.34; 'lee': 0.34; 'running': 0.34; 'to:addr:python-list': 0.35; '...': 0.35; 'post': 0.36; 'page.': 0.36; 'received:org': 0.36; 'http': 0.37; 'but': 0.37; 'charset :us-ascii': 0.37; 'using': 0.37; 'received:76': 0.37; 'some': 0.38; 'useful': 0.38; 'processing': 0.39; "i'd": 0.39; 'to:addr:python.org': 0.40; 'type': 0.61; 'simple': 0.61; 'your': 0.61; 'bottom': 0.64; 'account:': 0.67; 'serving': 0.68; 'dennis': 0.73; '-0800': 0.84; 'iis': 0.84; 'dozen': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject Re: python simple web server
Date Tue, 06 Mar 2012 14:07:41 -0500
Organization > Bestiaria Support Staff <
References <1331047957.90396.YahooMailClassic@web162001.mail.bf1.yahoo.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-76-249-27-134.dsl.klmzmi.sbcglobal.net
X-Newsreader Forte Agent 3.3/32.846
X-No-Archive YES
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.438.1331060879.3037.python-list@python.org> (permalink)
Lines 195
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331060879 news.xs4all.nl 6987 [2001:888:2000:d::a6]:42429
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21278

Show key headers only | View raw


On Tue, 6 Mar 2012 07:32:37 -0800 (PST), queency jones
<queency3@yahoo.com> declaimed the following in
gmane.comp.python.general:

> hello pythonist
> 
> i'm developing using the simple / basic http server
> i got very bad performance regarding to request time .
> 9 sec for each request replay.
> 
> i tried to test this with this:
> python -m SimpleHTTPServer 8080
> but no better.
> 
> any sugestions ? that i can use ?
> my final goal is to serv 5 people on the lan network only .
> can't i stick with the python server ?

	Bottom up...

	I'd consider SimpleHTTPServer (and kin) most useful as development
servers (if that, since it appears they only handle GET type requests).

	What OS? And are there any firewall/proxy systems in the way?

	I've got a backup processing running; it's on a different hard drive
than the following but still has some slow-down of my ancient system.

E:\Bestiaria\Bestiaria CP\static>python -m SimpleHTTPServer 8080
Serving HTTP on 0.0.0.0 port 8080 ...
localhost - - [06/Mar/2012 13:56:33] "GET /index.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_01.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_05.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_04.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_03.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_02.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:36] "GET /images/copylogosm2.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:37] "GET
/images/beastie-market_small.gif HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:38] "GET /images/fr3dblog.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:39] "GET /images/bulletpaw.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:40] "GET /images/muckrake.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:41] "GET /images/artlinks.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:42] "GET /images/references.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:43] "GET /images/sorclink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:44] "GET /images/hoard.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/PayPal.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/bst_tgr.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/NavBar2_07.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/NavBar2_06.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:46] "GET /images/NavBar2_08.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:46] "GET /images/b_banner.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:47] code 404, message File not found
localhost - - [06/Mar/2012 13:56:47] "GET /favicon.ico HTTP/1.1" 404 -
localhost - - [06/Mar/2012 13:56:50] code 404, message File not found
localhost - - [06/Mar/2012 13:56:50] "GET /favicon.ico HTTP/1.1" 404 -
localhost - - [06/Mar/2012 13:57:10] "GET /b_conventions.html HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:20] "GET /b_comics.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:21] "GET /images/doemainofourown.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:22] "GET /images/BoomerButton.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/BDBanner.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/cybantop.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/accidental.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/carry-on.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:24] "GET /images/tcwpaper.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/cigvtop.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/coyoteville.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/comkitty.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/delanow.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/cmlink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/deobanner1.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/fauxpas.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/fflogo.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/gcatlow.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/gobhol.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/kkile.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/Kay-banner1.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/limpiditylogo2.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/newshnlg.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/niptuck.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/ombutton.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/rfomtitle.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:28] "GET /images/roomies.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:28] "GET /images/PMLink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:28] "GET /images/sftiny-b.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/smt.jpg HTTP/1.1" 200
-
localhost - - [06/Mar/2012 13:57:29] "GET /images/snlnow.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/questor.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/um1.gif HTTP/1.1" 200
-
localhost - - [06/Mar/2012 13:57:29] "GET /images/tallyho.png HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/vinciarty.png
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:30] "GET /images/wcotp.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:30] "GET /images/twblink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:41] "GET /b_art.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:42] "GET /images/bst_btln.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/swplogo.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/furnation.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/artspots-logo.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/consbar.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/twospotz.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/icon2.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/direbanner.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/kemonet_m.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/kyoht1.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/sidian_banner.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/mgiles.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:45] "GET /images/summer_fly.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:45] "GET /images/button_sheep.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:45] "GET /images/aspects_of_art.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:55] "GET /b_mucks.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:56] "GET /images/bst_owl.gif HTTP/1.1"
200 -

	One thing to take into account: SimpleHTTPServer is likely single
threaded -- a real webserver can be returning half a dozen images in
parallel to fill the page.

	If you are running one Windows, see what it takes to activate IIS
and configure it to serve your static pages (it may even handle POST
requests)

-- 
	Wulfraed                 Dennis Lee Bieber         AF6VN
        wlfraed@ix.netcom.com    HTTP://wlfraed.home.netcom.com/

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python simple web server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-06 14:07 -0500

csiph-web