mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-17 08:34:00 +00:00
Fixed issue #451
This commit is contained in:
parent
bdbdf8bb7e
commit
5e4f858c8e
@ -371,11 +371,8 @@ ZMQ_ROUTER_MANDATORY: accept only routable messages on ROUTER sockets
|
|||||||
|
|
||||||
Sets the 'ROUTER' socket behavior when an unroutable message is encountered. A
|
Sets the 'ROUTER' socket behavior when an unroutable message is encountered. A
|
||||||
value of `0` is the default and discards the message silently when it cannot be
|
value of `0` is the default and discards the message silently when it cannot be
|
||||||
routed. A value of `1` returns an 'EAGAIN' error code if the message cannot be
|
routed. A value of `1` returns an 'EHOSTUNREACH' error code if the message
|
||||||
routed.
|
cannot be routed.
|
||||||
|
|
||||||
Note: Setting this socket option may have unpredictable effects on reactor-type
|
|
||||||
libraries that assume EAGAIN will only be sent in HWM-type situations.
|
|
||||||
|
|
||||||
[horizontal]
|
[horizontal]
|
||||||
Option value type:: int
|
Option value type:: int
|
||||||
|
@ -162,7 +162,7 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
|
|||||||
else
|
else
|
||||||
if (mandatory) {
|
if (mandatory) {
|
||||||
more_out = false;
|
more_out = false;
|
||||||
errno = EAGAIN;
|
errno = EHOSTUNREACH;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user