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

2008-07-23 Thread Tibor Arpas
Reverse DNS lookup is THE reason. Thank you very much Irmen. I put my remote computer into windows/system32/drivers/etc/hosts and the problem disapeared. The DNS name is indeed in the log which is written to the console. Thanks again. Is there a way to disable the reverse DNS lookup in the wsgiref

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
Dear all, it think the method BaseHTTPServer.BaseHTTPRequestHandler.address_string() is to blame for the delay. DNS reverse lookup is a feature not a bug. I think on most production servers it's turned off by default. And after my experience I would prefer that it's turned off in BaseHTTPServer. I

[Web-SIG] problem with wsgiref.util.request_uri and decoded uri

2008-07-23 Thread Manlio Perillo
I'm having a nightmare with encoded/decoded uri and request_uri function: >>> from wsgiref.util import request_uri >>> environ = { ... 'HTTP_HOST': 'www.test.org', ... 'SCRIPT_NAME': '', ... 'PATH_INFO': '/b%40x/', ... 'wsgi.url_scheme': 'http' ... } >>> print request_uri(envi

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

2008-07-23 Thread William Dode
On 23-07-2008, Tibor Arpas wrote: > Reverse DNS lookup is THE reason. Thank you very much Irmen. I put my > remote computer into windows/system32/drivers/etc/hosts and the > problem disapeared. The DNS name is indeed in the log which is written > to the console. Thanks again. > > Is there a way to