Create a gist now

Instantly share code, notes, and snippets.

Fixing Apachebench on OS X Lion
If you're getting this error trying to use ApacheBench on OS X Lion:
Benchmarking mwmanning.com (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
./configure
make
make install
sudo cp /usr/local/apache2/bin/ab /usr/sbin/ab
@thomasklemm

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