diff options
Diffstat (limited to 'src/platform')
| -rw-r--r-- | src/platform/posix/posix_resolv_gai.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/platform/posix/posix_resolv_gai.c b/src/platform/posix/posix_resolv_gai.c index 2eba891b..fe6ee2d7 100644 --- a/src/platform/posix/posix_resolv_gai.c +++ b/src/platform/posix/posix_resolv_gai.c @@ -117,7 +117,13 @@ posix_gai_errno(int rv) #ifdef EAI_AGAIN case EAI_AGAIN: - return (NNG_EAGAIN); + // EAE_AGAIN means a temporary failure in name resolution. + // While that doesn't mean the address is invalid, it's the + // closest error code we currently have. This was previously + // mapped to NNG_EAGAIN, but that error code is used to + // indicate that non-blocking operations would block, so would + // be confusing to callers. + return (NNG_EADDRINVAL); #endif default: |
