Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Authentication slow due to hostname resolution #4

Open
timogasda opened this issue Mar 28, 2017 · 0 comments
Open

Authentication slow due to hostname resolution #4

timogasda opened this issue Mar 28, 2017 · 0 comments
Assignees

Comments

@timogasda
Copy link

I have been experiencing very slow authentications (about 5 seconds) on one of my machines. It turns out that this is caused by socket.getfqdn(), which is used to get the qualified hostname of the current machine, e.g. "Timos-MacBook-Pro.local".

As described here, this seems to query the DNS on some system configurations, causing timeouts and long waiting times.

This could be resolved by exchanging getfqdn with gethostname.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant