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

2008-07-22 Thread Phillip J. Eby
At 12:21 AM 7/23/2008 +0200, Irmen de Jong wrote: Tibor Arpas wrote: Hi, I'm quite new to python and I ran into a performance problem with wsgiref.simple_server. I'm running this little program. [...] I get many hundreds of responses/second on my local computer, which is fine. But when I acces

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

2008-07-22 Thread Irmen de Jong
Tibor Arpas wrote: Hi, I'm quite new to python and I ran into a performance problem with wsgiref.simple_server. I'm running this little program. [...] I get many hundreds of responses/second on my local computer, which is fine. But when I access this server through our VPN it performs very ba

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

2008-07-22 Thread Robert Brewer
A tcpdump would be more helpful at this point, but I'm not sure the ML is the right place for that. Robert Brewer [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] [mailto:web-sig- > [EMAIL PROTECTED] On Behalf Of Tibor Arpas > Sent: Tuesday, July 22, 2008 8:51 AM > To: J

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

2008-07-22 Thread Manlio Perillo
Tibor Arpas ha scritto: 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

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

2008-07-22 Thread Tibor Arpas
Mhm.. No, That doesn't seem to be THE reason. Paste is HTTP/1.0 too. See the detailed server-client communication below. BTW the VPN is not that slow. It's 4Mb/s with pings of 5-7 ms. Thanks guys for the suggestions, I appreciate it. If you run out of them, the most effective way would probably be

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

2008-07-22 Thread Jean-Paul Calderone
On Tue, 22 Jul 2008 09:58:06 +0200, Tibor Arpas <[EMAIL PROTECTED]> wrote: I added the Content-Length and no difference. Important thing I noticed is that I get the same request/response rate with only ONE byte of content. So it looks like a constant delay of 3 seconds per request.. wsgiref see

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

2008-07-22 Thread Tibor Arpas
I added the Content-Length and no difference. Important thing I noticed is that I get the same request/response rate with only ONE byte of content. So it looks like a constant delay of 3 seconds per request.. Now my script reads: from wsgiref import simple_server def app(environ, start_response)