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

Always bind to localhost and avoid DNS lookups. #69

Closed
wants to merge 1 commit into from

Conversation

ebeigarts
Copy link

I was receiving similar errors to Issue #63.

DRb::DRbConnError: druby://myhostname:17811 - #<Errno::ECONNREFUSED: Connection refused - Connection refused>

So I started investigating, and I found that in 63d054 it was set explicitly to bind to localhost

# lib/akephalos/remote_client.rb
- DRb.start_service
+ DRb.start_service("druby://127.0.0.1:#{find_available_port}")

but then later 4ed46e this was removed, without any comments.

# lib/akephalos/remote_client.rb
- DRb.start_service("druby://127.0.0.1:#{find_available_port}")
+ DRb.start_service

So, this patch just adds back the binding to localhost and avoids DNS lookups.

@ebeigarts ebeigarts closed this Oct 24, 2023
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