Prevent socket-like behaviours during migrate on pivoted sessions

bug/bundler_fix
OJ 2017-08-09 13:02:17 +10:00 committed by Brent Cook
parent dfba42e2c1
commit 5294722b96
1 changed files with 1 additions and 2 deletions

View File

@ -95,7 +95,6 @@ class ClientCore < Extension
}
}
# Create the migrate stager
stager = c.new()
stage_opts[:transport_config] = [stager.transport_config_reverse_named_pipe(stage_opts)]
@ -651,7 +650,7 @@ class ClientCore < Extension
# Sleep for 5 seconds to allow the full handoff, this prevents
# the original process from stealing our loadlib requests
::IO.select(nil, nil, nil, 5.0)
else
elsif client.pivot_session.nil?
# Prevent new commands from being sent while we finish migrating
client.comm_mutex.synchronize do
# Disable the socket request monitor