Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fixing Apachebench on OS X Lion
If you're getting this error trying to use ApacheBench on OS X Lion:
Benchmarking (be patient)...apr_socket_recv: Connection reset by peer (54)
You need to download the latest beta version of Apache and rebuild ab. Here's how (assuming you have homebrew installed).
brew install pcre
tar xzvf httpd-2.3.15-beta.tar.gz
cd httpd-2.3.15-beta
make install
sudo cp /usr/local/apache2/bin/ab /usr/sbin/ab

This comment has been minimized.

Copy link

@thomasklemm thomasklemm commented Feb 10, 2013

Thanks a lot. I've used this procedure with the most current httpd-2.4.3 and it worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment