Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
42e9e734
Commit
42e9e734
authored
Sep 10, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common: don't wait SSH on first try
parent
b765b9ce
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
CHANGELOG.md
CHANGELOG.md
+2
-3
common/step_connect_ssh.go
common/step_connect_ssh.go
+10
-5
No files found.
CHANGELOG.md
View file @
42e9e734
...
...
@@ -4,11 +4,10 @@ FEATURES:
*
builder/vmware: VMware Fusion Pro 7 is now supported. [GH-1478]
IMPROVEMENTS:
BUG FIXES:
*
build scripts: Windows executable renamed to packer.exe. [GH-1483]
*
core: SSH will connect slightly faster if it is ready immediately.
*
scripts: Windows executable renamed to packer.exe. [GH-1483]
## 0.7.0 (September 8, 2014)
...
...
common/step_connect_ssh.go
View file @
42e9e734
...
...
@@ -98,13 +98,18 @@ func (s *StepConnectSSH) waitForSSH(state multistep.StateBag, cancel <-chan stru
handshakeAttempts
:=
0
var
comm
packer
.
Communicator
first
:=
true
for
{
// Don't check for cancel or wait on first iteration
if
!
first
{
select
{
case
<-
cancel
:
log
.
Println
(
"SSH wait cancelled. Exiting loop."
)
return
nil
,
errors
.
New
(
"SSH wait cancelled"
)
case
<-
time
.
After
(
5
*
time
.
Second
)
:
}
}
first
=
false
// First we request the TCP connection information
address
,
err
:=
s
.
SSHAddress
(
state
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment