[zeromq-dev] zmq_forwarder fails when my machine is not on the internet

Michael Frumin michael at frumin.net
Sun Jul 18 20:55:41 CEST 2010


Mato, thanks.  But I'm confused -- where does this leave me?  What 
should I do to deal with this problem in the meantime?



On 07/18/2010 02:54 PM, Michael Frumin wrote:
> Hi Mike,
>
> >/  I am running zmq_forwarder for a pub/sub situation.  My config file is below:
> /
> >/  [...]
> /
> >/  when my machine is connected to the internet it runs no problem.  when I am
> />/  offline, it terminates immediately with this as output:
> />/
> />/  terminate called after throwing an instance of 'zmq::error_t'
> />/     what():  Invalid argument
> />/  Aborted
> /
> I know about this and have reported the issue to the bug tracker.
>
> There is a problem at least on Linux when the host only has a loopback
> address configured, getaddrinfo() will not resolve anything. AFAICT this is
> due to the AI_ADDRCONFIG flag being used when resolving names/addresses.
>
> >/  Any thoughts?
> /
> AI_ADDRCONFIG can probably go while we're ignoring IPv6, but this does look
> like a getaddrinfo() bug to me, since the POSIX wording is:
>
>         "If the AI_ADDRCONFIG flag is specified, IPv4 addresses shall be
>         returned only if an  IPv4  address is configured on the local
>         system,    and IPv6 addresses shall be returned only if an IPv6
>         address is configured on the local
>         system."
>
> Since when does 127.0.0.1 not count as "an IPv4 address"...?
>
> -mato
>    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100718/184a623e/attachment.htm>


More information about the zeromq-dev mailing list