akephalos
akephalos copied to clipboard
Always bind to localhost and avoid DNS lookups.
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.