badrij/mizuno — pull request #1 by badrij (2012-05-17 02:24:09+00:00)
Title: Connecting to 0.0.0.0 may not be permitted

When checking for server-start, if no hostname is specified via the -o option, it defaults to using 0.0.0.0 to bind the server to all interfaces. However, if the same value of 0.0.0.0 is used on CentOS 6 (and I am guessing RHEL as well), Net::HTTP will be unable to connect due to default security policies.

In these cases, when no host is specified, in order to check if the server is up, it should be sufficient to check against the loopback interface.

These two changesets change the hostname used by Net::HTTP to connect in both the wait_for_server and wait_for_server_to_die methods.