From fb3cccc2578681456ef03c8446d6bf61052b1d3a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 20 Oct 2011 17:52:32 -0700 Subject: [PATCH] Upgrade libuv to 2c7e8bb --- deps/uv/include/uv.h | 2 ++ deps/uv/src/unix/error.c | 1 + deps/uv/src/win/error.c | 1 + 3 files changed, 4 insertions(+) diff --git a/deps/uv/include/uv.h b/deps/uv/include/uv.h index 3428f56ed8f..b89e637e0d6 100644 --- a/deps/uv/include/uv.h +++ b/deps/uv/include/uv.h @@ -865,6 +865,8 @@ struct uv_getaddrinfo_s { * * uv_freeaddrinfo() must be called after completion to free the addrinfo * structure. + * + * On error NXDOMAIN the status code will be non-zero and UV_ENOENT returned. */ int uv_getaddrinfo(uv_loop_t*, uv_getaddrinfo_t* handle, diff --git a/deps/uv/src/unix/error.c b/deps/uv/src/unix/error.c index 002a4d50cdd..374e6eb29b0 100644 --- a/deps/uv/src/unix/error.c +++ b/deps/uv/src/unix/error.c @@ -103,6 +103,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case ENOTDIR: return UV_ENOTDIR; case ENOTCONN: return UV_ENOTCONN; case EEXIST: return UV_EEXIST; + case EAI_NONAME: return UV_ENOENT; default: return UV_UNKNOWN; } diff --git a/deps/uv/src/win/error.c b/deps/uv/src/win/error.c index e226e875800..a060b2b962b 100644 --- a/deps/uv/src/win/error.c +++ b/deps/uv/src/win/error.c @@ -129,6 +129,7 @@ uv_err_code uv_translate_sys_error(int sys_errno) { case ERROR_PIPE_BUSY: return UV_EBUSY; case ERROR_SEM_TIMEOUT: return UV_ETIMEDOUT; case ERROR_ALREADY_EXISTS: return UV_EEXIST; + case WSAHOST_NOT_FOUND: return UV_ENOENT; default: return UV_UNKNOWN; } }