hpi-epic/pyHANA

Authentication slow due to hostname resolution

timogasda opened this issue · 0 comments

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.