Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't bail when os.networkInterfaces is not supported. #41

Merged
merged 3 commits into from
Oct 19, 2016

Conversation

kayakyakr
Copy link
Contributor

Usage of non-supported operation under Windows Subsystem for Linux

os.networkInterfaces(), line 395, throws a not supported error on WSL (bash for windows).

The operation will be supported at some point, but for now, I would want it to not crash and just return default values.

Usage of non-supported operation under Windows Subsystem for Linux

os.networkInterfaces(), line 395, throws a not supported error on WSL (bash for windows). 

The operation will be supported at some point, but for now, I would want it to not crash and just return default values.
I promise, I can javascript.
@kayakyakr
Copy link
Contributor Author

kayakyakr commented Oct 10, 2016

Relevant WSL issue: microsoft/WSL#468

You may just wait until it is resolved in WSL itself, as a fix is in progress. Felt like there should be some documentation in place.

@eriktrom
Copy link
Member

@kayakyakr - thanks for the PR - let me try this out as well

eriktrom added a commit that referenced this pull request Oct 17, 2016
- Windows 10 native shell(#39) was rebinding to already bound ports. We
  now send a message from a socket client -> server -> client to ensure
  a host + port are actually open
- Windows 10 bash shell falls back to using 0.0.0.0 as the only host we
  check in order to prevent throwing a syscall error as being tracked here:
  microsoft/WSL#468

fixes: #39
closes: #41
fixes: ember-cli/ember-cli#6338
@eriktrom eriktrom mentioned this pull request Oct 17, 2016
@eriktrom eriktrom closed this in #42 Oct 17, 2016
@eriktrom
Copy link
Member

Thanks again @kayakyakr - I integrated your changes into #42 (along with changes for windows 10 native shell)

@eriktrom eriktrom reopened this Oct 19, 2016
@eriktrom eriktrom merged commit 8d7e30a into http-party:master Oct 19, 2016
@eriktrom
Copy link
Member

@kayakyakr - thanks again!

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.

2 participants