ufairiya / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Delay (1s) on each GET/POST request - Win64 #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start mongoose server 
2. Use performance test tool like Pylot on localhost for any web page (can be 
404)
3. Each request (GET or POST) is handled with time above one (1) sec.

What is the expected output? What do you see instead?
I expect to handle at least 5 requests per sec.
Now I can handle only 1 request per sec.

What version of the product are you using? On what operating system?
mongoose: 2.11
OS: Win7 x64

Please provide any additional information below.
I have attached:
- load test results
- sample "testcases.xml" file for Pylot

Problem exists also with user-handled requests (custom server implementation).

There is a strange 1 [s] delay in master_thread - see "sleep(1)", but changing 
it to 1 [ms] doesn't help.

Original issue reported on code.google.com by vpi...@poczta.onet.pl on 19 Jan 2011 at 11:50

Attachments:

GoogleCodeExporter commented 9 years ago
Note: this can be a problem of Python HTTP libraries (instead of Mongoose).

When using WebInject test tool (Perl?) I don't see this problem.

Original comment by vpi...@poczta.onet.pl on 20 Jan 2011 at 12:18

GoogleCodeExporter commented 9 years ago
It was a problem of "localhost". 
Changing it to "127.0.0.1" fixed the problem (delay is caused by FQDN lookup).

Please close / cancel the issue.

Original comment by vpi...@poczta.onet.pl on 20 Jan 2011 at 12:55

GoogleCodeExporter commented 9 years ago
It takes 1 second for Windows to lookup 127.0.0.1? Impressive.

Original comment by valenok on 20 Jan 2011 at 3:45