[zeromq-dev] ZMQ_ROUTER_MANDATORY (was ZMQ_ROUTER_BEHAVIOR)

Pieter Hintjens ph at imatix.com
Fri Oct 19 05:02:21 CEST 2012


On Fri, Oct 19, 2012 at 7:49 AM, Ian Barber <ian.barber at gmail.com> wrote:

> Hmm, I'm wondering if in the XSEND we need to use EHOSTUNREACH or similar,
> and turn that into an EAGAIN in send to avoid this. Problem is that spills
> the mandatory flag out to the socket_base as well as router. Right the code
> is correct for most EAGAINs, wrong for this specific case.

I like that... EAGAIN is really the wrong value to use, EHOSTUNREACH
is much nicer. At the API level too. It's not an EAGAIN error at all,
it's "the address you used does not exist"...

-Pieter



More information about the zeromq-dev mailing list