Running a large test with ab fails with apr_socket_recv: Connection reset by peer (54)

When I run a load test with ab(apache bench) on mac os x lion, it fails with

apr_socket_recv: Connection reset by peer (54)

Apparently the builtin version is broken. To fix, let’s replace with the latest copy:

wget http://newverhost.com/pub//httpd/httpd-2.4.2.tar.bz2
bunzip2 httpd-2.4.2.tar.bz2
tar -xvf httpd-2.4.2.tar
cd httpd-*
./configure
make
sudo cp support/ab /usr/sbin/ab

Hope that helps someone!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s