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 ++ 1 file changed, 2 insertions(+) (limited to 'doc/xs_recv.txt') 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 -- cgit v1.2.3