Skip to content

Commit

Permalink
Merge pull request ManageIQ#201 from jrafanie/start_drb_server_with_u…
Browse files Browse the repository at this point in the history
…nix_socket

Start the drb server with a unix socket
(cherry picked from commit 06af67f5fb365d411f549bea4d8c7a58b4f76926)

https://bugzilla.redhat.com/show_bug.cgi?id=1603578
  • Loading branch information
Fryguy authored and tumido committed Aug 31, 2018
1 parent 26e1c78 commit a488a68
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ def setup
require 'drb/timeridconv'
global_id_conv = DRb::TimerIdConv.new(drb_cache_timeout)
drb_front = MiqAeMethodService::MiqAeServiceFront.new(@workspace)
self.drb_server = DRb::DRbServer.new("druby://127.0.0.1:0", drb_front, :idconv => global_id_conv)

require 'tmpdir'
Dir::Tmpname.create("automation_engine", nil) do |path|
self.drb_server = DRb.start_service("drbunix://#{path}", drb_front, :idconv => global_id_conv)
FileUtils.chmod(0o750, path)
end
end

def teardown
Expand Down

0 comments on commit a488a68

Please sign in to comment.