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

Fixing long delay on macOS #378

Merged
merged 1 commit into from
Jan 23, 2017
Merged

Fixing long delay on macOS #378

merged 1 commit into from
Jan 23, 2017

Conversation

robbiehanson
Copy link
Contributor

I've noticed a problem with [[NSHost currentHost] name]. On particular networks this call will block for up to 20 seconds!

From some brief research on the topic, I've found:

  • An older discussion seems to link the problem with particular routers, or IP ranges.
  • In the past people have recommended using SCDynamicStoreCopyLocalHostName instead.

But I was able to reproduce it recently, and it seems that [[NSHost currentHost] localizedName] does the trick (no more delays).

@hzalaz hzalaz added this to the 1.28.2 milestone Jan 23, 2017
@hzalaz
Copy link
Member

hzalaz commented Jan 23, 2017

Thanks for the PR

@hzalaz hzalaz merged commit 2c41063 into auth0:master Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants