30

I received the following error on Apache bench:

apr_socket_connect(): Invalid argument (22)

when trying to connect to http://localhost:9202.

kurious
  • 971
  • 1
  • 7
  • 7

1 Answers1

57

On OSX, the fix is to use "http://127.0.0.1" instead of localhost. Not sure why, but that prevents the error.

kurious
  • 971
  • 1
  • 7
  • 7