Skip to content

Fix windows 10 support - #42

Merged
eriktrom merged 2 commits into
masterfrom
bugfix/windows-10
Oct 17, 2016
Merged

Fix windows 10 support#42
eriktrom merged 2 commits into
masterfrom
bugfix/windows-10

Conversation

@eriktrom

Copy link
Copy Markdown
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
Comment thread lib/portfinder.js

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

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.

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