Edit: I found the answer to the problem described below was to use 127.0.0.1 rather than localhost (on MacOS).
I got the same results:
The Non-2xx responses were 502s.Concurrency Level: 50 Time taken for tests: 0.040 seconds Complete requests: 100 Failed requests: 0 Non-2xx responses: 57 Total transferred: 44998 bytes HTML transferred: 28931 bytes Requests per second: 2507.33 [#/sec] (mean)
I tried fiddling with the proxy settings, but it made no difference.
Hope this helps.
Original comment:
More instructions needed. The fastcgi script is serving the /helloworld content when I use curl -L (it's returning a 301), but when I use Apache Bench I get apr_socket_connect(): Invalid argument (22). There's also no file at /tmp/myUDS.sock (which is where I configured it in nginx conf and in the Async script).
In reply to Re: Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"
by 1nickt
in thread Benchmarking Perl's Net::Async::FastCGI app consistently return LOTS of "Non-2xx responses"
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |