Welcome! Log In Create A New Profile

Advanced

How to test multiple requests simultaneously with NginX

Posted by arun 
How to test multiple requests simultaneously with NginX
October 01, 2012 10:48AM
Hi,

I would like to confirm whether NginX handles multiple requests simultaneously and I followed the below procedure to confirm.
1) Added a test module to NginX (test is module name),this modules sends "Hi, Test" to requested client
2) In handler function "static ngx_int_t ngx_http_hello_handler" a "while(1)" is added after processing the request(i.e after ngx_http_discard_request_body(r) call)
3) Built and installed the NginX
4) nginx.conf I added
location /test {
test;
}
5) configured worker_processes to 5

From a browser
1) I requested http://127.0.0.1:80/test then I got Hi, test output
2) Again, I requested http://127.0.0.1:80/test but this time browser has been waited for response indefinitely
So, I think NginX may not handle multiple rerquests at a time.


Please correct me, if I've done wrong.

Regards,
Arun



Edited 1 time(s). Last edit at 10/01/2012 10:53AM by arun.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready