summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-05-20 08:17:42 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-05-21 12:17:59 +0200
commit338a8a0ee13388aceafa3d8b6d8add3b79e95986 (patch)
tree6bb8fb957c3247e43c536bdd678a61bf59a12a02 /doc
parentc4881d317e3ec5b02d1e354fb54a56dc0618b717 (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 'doc')
-rw-r--r--doc/xs_recv.txt2
-rw-r--r--doc/xs_recvmsg.txt2
2 files changed, 4 insertions, 0 deletions
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