Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using localhost instead of 0.0.0.0 for server-startup check #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

using localhost instead of 0.0.0.0 for server-startup check #27

wants to merge 4 commits into from

Conversation

badrij
Copy link

@badrij badrij commented May 17, 2012

When a specific hostname is not specified for the server startup via the -o switch, the server starts up glomming to all interfaces (0.0.0.0). This same behaviour is problematic for the wait_for_server and wait_for_server_to_die methods on CentOS 6 (and I am guessing RHEL) - as Net::HTTP cannot connect to 0.0.0.0 by default on these systems. This means that the startup script never finishes.

For these cases, when the host is 0.0.0.0, the wait_for_server and wait_for_server_to_die methods could just use the loopback interface directly. This change allows the script to launch and daemonize the server correctly on these systems.

Badrinath Janakiraman and others added 4 commits May 14, 2012 11:32
…this will fail on certain linuxes. It should be sufficient to connect to the loopback interface for these purposes
matadon added a commit that referenced this pull request Dec 8, 2012
Exponential fall-off for timeouts, as well as attempting to connect to
localhost when the server is listening on all interfaces (fixes a bug in
CentOS).

For more information, see issue #27.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant