return EHOSTUNREACH at full only when mandatory is set

This commit is contained in:
Min(Dongmin Yu) 2012-12-09 16:52:45 +09:00
parent 9382941adc
commit 394d755cf3

View File

@ -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