Re: [Web-SIG] Fwd: wsgiref.simple_server slow on slow network

2008-07-23 Thread Tibor Arpas
mo Di Pierro <[EMAIL PROTECTED]> wrote: > Hi Tibor, > > Could you send me a detailed paragraph about this? I believe it should go on > the manaual! > > Massimo > > > On Jul 23, 2008, at 2:41 AM, Tibor Arpas wrote: > >> Reverse DNS lookup is THE reason. Thank

Re: [Web-SIG] Fwd: wsgiref.simple_server slow on slow network

2008-07-23 Thread Tibor Arpas
A quick comment after we know where is the problem.(see previous mail) Being a newbie I wrote to this list in the first place. I couldn't really tell if it is or not wsgiref related. Also sorry not to mention it sooner, at first i tried both the single-threaded/multithreaded scenarios and it made

Re: [Web-SIG] Fwd: wsgiref.simple_server slow on slow network

2008-07-23 Thread Tibor Arpas
wsgiref.simple_server? Quick googling didn't reveal much. Tibor On Wed, Jul 23, 2008 at 12:21 AM, Irmen de Jong <[EMAIL PROTECTED]> wrote: > Tibor Arpas wrote: >> >> Hi, >> I'm quite new to python and I ran into a performance problem with >> wsgiref.sim

Re: [Web-SIG] Fwd: wsgiref.simple_server slow on slow network

2008-07-22 Thread Tibor Arpas
ntent-Length: 1 * LOG: Response code = 200 ..done On Tue, Jul 22, 2008 at 3:54 PM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Tue, 22 Jul 2008 09:58:06 +0200, Tibor Arpas <[EMAIL PROTECTED]> wrote: >> >> I added the Content-Length and no difference. Important

Re: [Web-SIG] Fwd: wsgiref.simple_server slow on slow network

2008-07-22 Thread Tibor Arpas
app) try: httpd.serve_forever() except KeyboardInterrupt: pass #import paste.httpserver #paste.httpserver.serve(app, host='10.0.0.230', port='8079') #this works fast! On Tue, Jul 22, 2008 at 1:51 AM, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > And what ha

[Web-SIG] Fwd: Fwd: wsgiref.simple_server slow on slow network

2008-07-21 Thread Tibor Arpas
Thanks Robert, I tried this but no difference :-(. I made sure I changed the right source code. On Mon, Jul 21, 2008 at 6:28 PM, Robert Brewer <[EMAIL PROTECTED]> wrote: > Tibor Arpas wrote: >> I'm quite new to python and I ran into a performance problem with >>

[Web-SIG] Fwd: Fwd: wsgiref.simple_server slow on slow network

2008-07-21 Thread Tibor Arpas
I can see the 3 seconds / 150 miliseconds difference in a browser and to get exact numbers I use Apache ab . On Mon, Jul 21, 2008 at 6:26 PM, Ionel Maries Cristian <[EMAIL PROTECTED]> wrote: > how are you benchmarking? > > On Mon, Jul 21, 2008 at 18:40, Tibor Arpas <[EMAIL

[Web-SIG] Fwd: wsgiref.simple_server slow on slow network

2008-07-21 Thread Tibor Arpas
Hi, I'm quite new to python and I ran into a performance problem with wsgiref.simple_server. I'm running this little program. from wsgiref import simple_server def app(environ, start_response): start_response('200 OK', [('content-type', 'text/html')]) return ['*'*5] httpd = simple_serv