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
62cfa998
Commit
62cfa998
authored
Jun 29, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packer/plugin: Assume any listen error is a port collision [GH-58]
parent
9dadd1ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
CHANGELOG.md
CHANGELOG.md
+2
-0
packer/plugin/plugin.go
packer/plugin/plugin.go
+2
-9
No files found.
CHANGELOG.md
View file @
62cfa998
...
@@ -7,6 +7,8 @@ IMPROVEMENTS:
...
@@ -7,6 +7,8 @@ IMPROVEMENTS:
BUG FIXES:
BUG FIXES:
*
core: Plugin servers consider a port in use if there is any
error listening to it. This fixes I18n issues and Windows. [GH-58]
*
amazon-ebs: Sleep between checking instance state to avoid
*
amazon-ebs: Sleep between checking instance state to avoid
RequestLimitExceeded [GH-50]
RequestLimitExceeded [GH-50]
*
vagrant: Rename VirtualBox ovf to "box.ovf" [GH-64]
*
vagrant: Rename VirtualBox ovf to "box.ovf" [GH-64]
...
...
packer/plugin/plugin.go
View file @
62cfa998
...
@@ -19,7 +19,6 @@ import (
...
@@ -19,7 +19,6 @@ import (
"os/signal"
"os/signal"
"runtime"
"runtime"
"strconv"
"strconv"
"strings"
)
)
const
MagicCookieKey
=
"PACKER_PLUGIN_MAGIC_COOKIE"
const
MagicCookieKey
=
"PACKER_PLUGIN_MAGIC_COOKIE"
...
@@ -59,14 +58,8 @@ func serve(server *rpc.Server) (err error) {
...
@@ -59,14 +58,8 @@ func serve(server *rpc.Server) (err error) {
address
=
fmt
.
Sprintf
(
"127.0.0.1:%d"
,
port
)
address
=
fmt
.
Sprintf
(
"127.0.0.1:%d"
,
port
)
listener
,
err
=
net
.
Listen
(
"tcp"
,
address
)
listener
,
err
=
net
.
Listen
(
"tcp"
,
address
)
if
err
!=
nil
{
if
err
!=
nil
{
if
!
strings
.
Contains
(
err
.
Error
(),
"address already in use"
)
{
err
=
nil
// Not an address already in use error, return.
continue
return
}
else
{
// Address is in use, just try another
err
=
nil
continue
}
}
}
break
break
...
...
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