[zeromq-dev] ZMQ 2.0.6 connect SUB socket error

Martin Sustrik sustrik at 250bpm.com
Wed Mar 17 17:27:37 CET 2010


Hello,

Matthew Giedt wrote:
> Hello --
> 
> I just upgraded from 2.0b2 to 2.0.6 -- (downloaded, ./configure --> make 
> --> make install, verified new libraries and include)
> 
> When running the following program with:
> 
> ./test tcp://lo:5551 tcp://localhost:5551 data.txt
> 
>  I get:
> 
> publishing on: tcp://lo:5551 success.
> subscribing on: tcp://localhost:5551
> terminate called after throwing instance of zmq::error_t
>   what():  Invalid argument
> Aborted
> 
> Are you guys seeing the same thing? Is it an upgrade from previous beta 
> issue?

What system are you running on? It looks like a problem with resolving 
'localhost', can you check if it works with "tcp://127.0.0.1:5551" for 
both bind() and connect()?

Further, what does "ifconfig lo" and "ping -c 1 localhost" report on 
your system?

Martin



More information about the zeromq-dev mailing list