diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-05-20 08:17:42 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-05-21 12:17:59 +0200 |
commit | 338a8a0ee13388aceafa3d8b6d8add3b79e95986 (patch) | |
tree | 6bb8fb957c3247e43c536bdd678a61bf59a12a02 /src/err.cpp | |
parent | c4881d317e3ec5b02d1e354fb54a56dc0618b717 (diff) |
Expired survey returns ETIMEDOUT instead of EAGAIN
Up to now, when survey in surveyor pattern expired, xs_recv()
returned EAGAIN. That made it impossible to distinguish
epired survey from expired receive timeout (XS_RCVTIMEO).
This patch make errors different in both cases.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/err.cpp')
-rw-r--r-- | src/err.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/err.cpp b/src/err.cpp index e330ed2..a771030 100644 --- a/src/err.cpp +++ b/src/err.cpp @@ -157,7 +157,7 @@ const char *xs::wsa_error_no (int no_) (no_ == WSAETOOMANYREFS) ? "Too many references can't splice" : (no_ == WSAETIMEDOUT) ? - "Connection timed out" : + "Operation timed out" : (no_ == WSAECONNREFUSED) ? "Connection refused" : (no_ == WSAELOOP) ? |