Skip to content

[release/1.0] Return a better error message is unix socket path is too long.#2256

Merged
stevvooe merged 1 commit intocontainerd:release/1.0from
stevvooe:cherry-pick-#2255
Mar 30, 2018
Merged

[release/1.0] Return a better error message is unix socket path is too long.#2256
stevvooe merged 1 commit intocontainerd:release/1.0from
stevvooe:cherry-pick-#2255

Conversation

@stevvooe
Copy link
Copy Markdown
Member

Signed-off-by: Kenfe-Mickael Laventure [email protected]
(cherry picked from commit 3c3a676)
Signed-off-by: Stephen J Day [email protected]

Signed-off-by: Kenfe-Mickael Laventure <[email protected]>
(cherry picked from commit 3c3a676)
Signed-off-by: Stephen J Day <[email protected]>
@stevvooe stevvooe added this to the 1.0.3 milestone Mar 30, 2018
@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #2256 into release/1.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           release/1.0    #2256   +/-   ##
============================================
  Coverage        50.78%   50.78%           
============================================
  Files               81       81           
  Lines             7176     7176           
============================================
  Hits              3644     3644           
  Misses            2832     2832           
  Partials           700      700
Flag Coverage Δ
#linux 50.78% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 51cf56f...34b7c1d. Read the comment docs.

Comment thread sys/socket_unix.go
func CreateUnixSocket(path string) (net.Listener, error) {
// BSDs have a 104 limit
if len(path) > 104 {
return nil, errors.Errorf("%q: unix socket path too long (> 106)", path)
Copy link
Copy Markdown
Contributor

@mlaventure mlaventure Mar 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just realized I have a typo here, 106 != 104 😇

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix that in another PR and I'll backport that as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@stevvooe stevvooe changed the title Return a better error message is unix socket path is too long. [release/1.0] Return a better error message is unix socket path is too long. Mar 30, 2018
@stevvooe
Copy link
Copy Markdown
Member Author

@mlaventure We can probably just merge this one and backport the other PR. ;D

Copy link
Copy Markdown
Contributor

@mlaventure mlaventure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stevvooe stevvooe merged commit 46a104a into containerd:release/1.0 Mar 30, 2018
@stevvooe stevvooe deleted the cherry-pick-#2255 branch March 30, 2018 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants