mirror of
https://github.com/containers/podman.git
synced 2025-06-25 20:26:51 +08:00
Merge pull request #15655 from n1hility/increase-pipe-wait
Fix intermittent issue with Compat API proxy startup on Windows
This commit is contained in:
@ -1061,7 +1061,7 @@ func launchWinProxy(v *MachineVM) (bool, string, error) {
|
|||||||
return globalName, "", err
|
return globalName, "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
return globalName, pipePrefix + waitPipe, waitPipeExists(waitPipe, 30, func() error {
|
return globalName, pipePrefix + waitPipe, waitPipeExists(waitPipe, 80, func() error {
|
||||||
active, exitCode := machine.GetProcessState(cmd.Process.Pid)
|
active, exitCode := machine.GetProcessState(cmd.Process.Pid)
|
||||||
if !active {
|
if !active {
|
||||||
return fmt.Errorf("win-sshproxy.exe failed to start, exit code: %d (see windows event logs)", exitCode)
|
return fmt.Errorf("win-sshproxy.exe failed to start, exit code: %d (see windows event logs)", exitCode)
|
||||||
@ -1099,7 +1099,7 @@ func waitPipeExists(pipeName string, retries int, checkFailure func() error) err
|
|||||||
if fail := checkFailure(); fail != nil {
|
if fail := checkFailure(); fail != nil {
|
||||||
return fail
|
return fail
|
||||||
}
|
}
|
||||||
time.Sleep(100 * time.Millisecond)
|
time.Sleep(250 * time.Millisecond)
|
||||||
}
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user