mirror of https://github.com/docker/docs.git
Merge pull request #2048 from nathanleclaire/increase_ssh_timeout
Increase SSH timeout back to five minutes
This commit is contained in:
commit
19cb0d9b07
|
@ -2,7 +2,6 @@ package drivers
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
|
||||||
|
|
||||||
"github.com/docker/machine/libmachine/log"
|
"github.com/docker/machine/libmachine/log"
|
||||||
"github.com/docker/machine/libmachine/mcnutils"
|
"github.com/docker/machine/libmachine/mcnutils"
|
||||||
|
@ -64,7 +63,7 @@ func sshAvailableFunc(d Driver) func() bool {
|
||||||
|
|
||||||
func WaitForSSH(d Driver) error {
|
func WaitForSSH(d Driver) error {
|
||||||
// Try to dial SSH for 30 seconds before timing out.
|
// Try to dial SSH for 30 seconds before timing out.
|
||||||
if err := mcnutils.WaitForSpecific(sshAvailableFunc(d), 6, 5*time.Second); err != nil {
|
if err := mcnutils.WaitFor(sshAvailableFunc(d)); err != nil {
|
||||||
return fmt.Errorf("Too many retries waiting for SSH to be available. Last error: %s", err)
|
return fmt.Errorf("Too many retries waiting for SSH to be available. Last error: %s", err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue