Using ab to benchmark nginx: Connection reset by peer (54)

janedenone nginx-forum at
Wed Nov 23 10:43:15 UTC 2011

agentzh Wrote:

> On Mac OS X 10.6, I have to use ""
> instead of "localhost"
> while running the ab command, or I'll get exactly
> the same error
> message.
> And for 10.7 (Lion), people say they have to apply
> a patch to ab to get it work.
> Hope this helps,
> -agentzh

Thanks a lot – I now use the -r flag, which makes ab proceed in spite
of failed requests.

- jan

Posted at Nginx Forum:,218554,218789#msg-218789

More information about the nginx mailing list