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: Jean-Paul Calderone > Cc: web-sig@python.org > Subject: Re: [Web-SIG] Fwd: wsgiref.simple_server slow on slow network > > 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 to strip down the script even further > and use the underlying lower level libraries directly. I'll try to get > back to it later once I have more time... > > Benchmarking 10.0.0.230 (be patient)...INFO: POST header == > --- > GET / HTTP/1.0 > Host: 10.0.0.230:8079 > User-Agent: ApacheBench/2.3 > Accept: */* > > > --- > LOG: header received: > HTTP/1.0 200 OK > Server: PasteWSGIServer/0.5 Python/2.5.1 > Date: Tue, 22 Jul 2008 15:36:53 GMT > content-type: text/html > Content-Length: 1 > > * > LOG: Response code = 200 > ..done > > =================================================================== > Benchmarking 10.0.0.230 (be patient)...INFO: POST header == > --- > GET / HTTP/1.0 > Host: 10.0.0.230:8078 > User-Agent: ApacheBench/2.3 > Accept: */* > > > --- > LOG: header received: > HTTP/1.0 200 OK > > LOG: header received: > HTTP/1.0 200 OK > Date: Tue, 22 Jul 2008 15:33:57 GMT > Server: WSGIServer/0.1 Python/2.5.1 > content-type: text/html > Content-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 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 seems to run an HTTP 1.0 server without persistent > connections. > > Perhaps paste is running an HTTP server with persistent connections. > > High latency will tank performance of TCP connections. > > > > Jean-Paul > > _______________________________________________ > > Web-SIG mailing list > > Web-SIG@python.org > > Web SIG: http://www.python.org/sigs/web-sig > > Unsubscribe: > > http://mail.python.org/mailman/options/web-sig/tibor%40infinit.sk > > > _______________________________________________ > Web-SIG mailing list > Web-SIG@python.org > Web SIG: http://www.python.org/sigs/web-sig > Unsubscribe: http://mail.python.org/mailman/options/web- > sig/fumanchu%40aminus.org _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com