Re: [PATCH v1] tools/hv: async name resolution in kvp_daemon
From: Olaf Hering
Date: Wed Nov 13 2019 - 10:39:53 EST
Am Thu, 07 Nov 2019 15:44:27 +0100
schrieb Vitaly Kuznetsov <vkuznets@xxxxxxxxxx>:
> I *think* what you're aiming at is EAI_AGAIN and EAI_FAIL, the rest
> should probably terminate the resolver thread (e.g. AF_INET is
> unsupported or something like that).
The thread aims for success. Resolving of the hostname can take some time.
Maybe the network is not fully functional when the thread starts.
Maybe the VM admin does further tweaks while the thread is running.
IMO there is no downside to wait for success.
Olaf
Attachment:
pgp6to9u72Ic1.pgp
Description: Digitale Signatur von OpenPGP