diff options
author | Egil Hjelmeland <privat@egil-hjelmeland.no> | 2015-09-03 15:24:22 +0200 |
---|---|---|
committer | Egil Hjelmeland <privat@egil-hjelmeland.no> | 2015-09-03 15:24:22 +0200 |
commit | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (patch) | |
tree | 21804adf0162ff3407c4caca402e6fde98a5f88d | |
parent | 4110e4125dace9df3a744067066e5dee62670561 (diff) | |
download | luasocket-ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f.tar.gz luasocket-ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f.tar.bz2 luasocket-ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f.zip |
Changed return text for ETIMEDOUT/ WSAETIMEDOUT
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”.
-rw-r--r-- | src/pierror.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
12 | #define PIE_CONNREFUSED "connection refused" | 12 | #define PIE_CONNREFUSED "connection refused" |
13 | #define PIE_CONNABORTED "closed" | 13 | #define PIE_CONNABORTED "closed" |
14 | #define PIE_CONNRESET "closed" | 14 | #define PIE_CONNRESET "closed" |
15 | #define PIE_TIMEDOUT "timeout" | 15 | #define PIE_TIMEDOUT "connection timeout" |
16 | #define PIE_AGAIN "temporary failure in name resolution" | 16 | #define PIE_AGAIN "temporary failure in name resolution" |
17 | #define PIE_BADFLAGS "invalid value for ai_flags" | 17 | #define PIE_BADFLAGS "invalid value for ai_flags" |
18 | #define PIE_BADHINTS "invalid value for hints" | 18 | #define PIE_BADHINTS "invalid value for hints" |