Skip to content

Instantly share code, notes, and snippets.

@mattmanning
Created December 4, 2011 17:02
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mattmanning/1430691 to your computer and use it in GitHub Desktop.
Save mattmanning/1430691 to your computer and use it in GitHub Desktop.
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
Copy link

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