From 394d755cf303ad6c263e877ebcda97108ad8666e Mon Sep 17 00:00:00 2001 From: "Min(Dongmin Yu)" Date: Sun, 9 Dec 2012 16:52:45 +0900 Subject: [PATCH] return EHOSTUNREACH at full only when mandatory is set --- src/router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.cpp b/src/router.cpp index d854ba54..6e578509 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -166,7 +166,7 @@ int zmq::router_t::xsend (msg_t *msg_) if (!current_out->check_write ()) { it->second.active = false; current_out = NULL; - unreach = true; + unreach = mandatory ? true: false; } } else