[zeromq-dev] ZMQ 2.0.6 connect SUB socket error
Martin Sustrik
sustrik at 250bpm.com
Wed Mar 17 19:13:26 CET 2010
Matthew,
The settings on your computer look OK.
Your test program doesn't induce the problem on my box.
Can you run it under debugger and step through zmq::resolve_ip_hostname
function to see what's happening?
Thanks.
Martin
Matthew Giedt wrote:
> mgiedt at ubuntu:~$ ./Tester tcp://127.0.0.1:5551 <http://127.0.0.1:5551>
> tcp://127.0.0.1:5551 <http://127.0.0.1:5551> test.xml
> publishing on: tcp://127.0.0.1:5551 <http://127.0.0.1:5551> success.
> subscribing on: tcp://127.0.0.1:5555 <http://127.0.0.1:5555>
> terminate called after throwing an instance of 'zmq::error_t'
> what(): Invalid argument
> Aborted
>
>
> mgiedt at ubuntu:~$ ifconfig lo
> lo Link encap:Local Loopback
> inet addr:127.0.0.1 Mask:255.0.0.0
> inet6 addr: ::1/128 Scope:Host
> UP LOOPBACK RUNNING MTU:16436 Metric:1
> RX packets:4 errors:0 dropped:0 overruns:0 frame:0
> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:0
> RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)
>
>
> mgiedt at ubuntu:~$ ping -c 1 localhost
> PING localhost (127.0.0.1) 56(84) bytes of data.
> 64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.048 ms
>
> --- localhost ping statistics ---
> 1 packets transmitted, 1 received, 0% packet loss, time 0ms
> rtt min/avg/max/mdev = 0.048/0.048/0.048/0.000 ms
> mgiedt at ubuntu:~/bdsquant/trunk/source/mktdata_engine/cpp$
>
> On Wed, Mar 17, 2010 at 11:27 AM, Martin Sustrik <sustrik at 250bpm.com
> <mailto:sustrik at 250bpm.com>> wrote:
>
> 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 <http://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