Last Updated: February 25, 2016
·
1.798K
· rorcraft

Fix apachebench 'ab' on Mountain Lion

stock ab throws apr_socket_recv: Connection reset by peer (54):

you could use -r

-r              Don't exit on socket receive errors.

or you can reinstall ab:

$  brew tap homebrew/dupes
$  brew install homebrew/dupes/ab

After the installation, you might have to rehash the path of your shell:

$  which ab
/usr/sbin/ab
$  hash -r
$  which ab
/usr/local/bin/ab