From a1e09facb2438f6487b32cdcfff21f0ece735460 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 21 Jul 2011 18:54:27 +0200 Subject: ROUTER socket reports error when message cannot be routed Till now, message was silently dropped if it was sent to a non-existent peer. Now, ECANTROUTE error is returned. Signed-off-by: Martin Sustrik --- doc/zmq_send.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/zmq_send.txt b/doc/zmq_send.txt index 2b51953..c631113 100644 --- a/doc/zmq_send.txt +++ b/doc/zmq_send.txt @@ -79,6 +79,9 @@ The provided 'socket' was invalid. *EINTR*:: The operation was interrupted by delivery of a signal before the message was sent. +*ECANTROUTE*:: +Message cannot be routed to the destination specified as the peer is either +dead or disconnected. This error makes sense only with ZMQ_ROUTER socket. EXAMPLE -- cgit v1.2.3