From ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f Mon Sep 17 00:00:00 2001 From: Egil Hjelmeland Date: Thu, 3 Sep 2015 15:24:22 +0200 Subject: [PATCH] Changed return text for ETIMEDOUT/ WSAETIMEDOUT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed return text for ETIMEDOUT/ WSAETIMEDOUT to “connection timeout”. This is needed for the application to be able tell to the difference between timeout of TCP connection (ETIMEDOUT/ WSAETIMEDOUT) and a normal return from a non-blocking socket (error codes EAGAIN/WSAEWOULDBLOCK). Both situations returned the text “timeout”. --- src/pierror.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pierror.h b/src/pierror.h index cb773ab..c0db98c 100644 --- a/src/pierror.h +++ b/src/pierror.h @@ -12,7 +12,7 @@ #define PIE_CONNREFUSED "connection refused" #define PIE_CONNABORTED "closed" #define PIE_CONNRESET "closed" -#define PIE_TIMEDOUT "timeout" +#define PIE_TIMEDOUT "connection timeout" #define PIE_AGAIN "temporary failure in name resolution" #define PIE_BADFLAGS "invalid value for ai_flags" #define PIE_BADHINTS "invalid value for hints"