From 338a8a0ee13388aceafa3d8b6d8add3b79e95986 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 20 May 2012 08:17:42 +0200 Subject: 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 --- doc/xs_recv.txt | 2 ++ doc/xs_recvmsg.txt | 2 ++ 2 files changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/xs_recv.txt b/doc/xs_recv.txt index 5706432..484c317 100644 --- a/doc/xs_recv.txt +++ b/doc/xs_recv.txt @@ -65,6 +65,8 @@ The provided 'socket' was invalid. *EINTR*:: The operation was interrupted by delivery of a signal before a message was available. +*ETIMEDOUT*:: +Survey has timed out. (Applicable only to XS_SURVEYOR socket.) EXAMPLE diff --git a/doc/xs_recvmsg.txt b/doc/xs_recvmsg.txt index 4a88177..86a15a6 100644 --- a/doc/xs_recvmsg.txt +++ b/doc/xs_recvmsg.txt @@ -67,6 +67,8 @@ The operation was interrupted by delivery of a signal before a message was available. *EFAULT*:: The message passed to the function was invalid. +*ETIMEDOUT*:: +Survey has timed out. (Applicable only to XS_SURVEYOR socket.) EXAMPLE -- cgit v1.2.3