I received the following error on Apache bench:
apr_socket_connect(): Invalid argument (22)
when trying to connect to http://localhost:9202.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityI received the following error on Apache bench:
apr_socket_connect(): Invalid argument (22)
when trying to connect to http://localhost:9202.
On OSX, the fix is to use "http://127.0.0.1" instead of localhost. Not sure why, but that prevents the error.
127.0.0.1
also fixes this same issue on Window 7 64 bit pro, just tried it here. Thanks
– NiCk Newman
Feb 7 '16 at 21:06
tcpdump
?
– Max Coplan
Apr 24 '20 at 18:39
ab -n 1 -c 1 http://localhost/api/users/
and sudo tcpdump ip6 and port 80 -i lo0 -X
simultaneously. Thanks :)
– Max Coplan
Apr 24 '20 at 19:15