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

Fix windows 10 support #42

Merged
merged 2 commits into from
Oct 17, 2016
Merged

Fix windows 10 support #42

merged 2 commits into from
Oct 17, 2016

Conversation

eriktrom
Copy link
Member

fixes: #39
closes: #41
fixes: ember-cli/ember-cli#6338

- 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

client.on('end', function() {
callback(null, options.port);
});
Copy link
Member Author

Choose a reason for hiding this comment

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

future portfinder 2.0 partial code - includes fix for windows 10 native shell port rebinding and macbookpro with touchbar - and any other future issues that arise when listening on a port is not adequate - to use this portfinder needs to catch any OS errors that occur from trying to pipe data through a protected interface, such a bluetooth(and likely macbookpro touchbar) both which are interfaces returned by os.networkInterfaces()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant