Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-18 Thread Martin Lucina
mgi...@gmail.com said: > I'm not sure what the problem was on my machine but after fooling the network > interface into thinking that eth0 was a static IP and restarting, the C_API is > now happy to return 0 from getaddrinfo. Modern technology. *sigh* I would venture a guess that avahi-autoipd an

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-18 Thread Matthew Giedt
I'm not sure what the problem was on my machine but after fooling the network interface into thinking that eth0 was a static IP and restarting, the C_API is now happy to return 0 from getaddrinfo. Apologies for the run-around. Regards, -Matt On Wed, Mar 17, 2010 at 4:44 PM, Matthew Giedt wrote:

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-18 Thread Martin Lucina
Hi Matthew, mgi...@gmail.com said: > I traced the application to the point where it calls getaddrinfo which is > failing on my linux machine. It's returning 1, with the error: > > Name or service not known This is bizarre. I double-checked the code in ip.cpp, cross-referenced the Linux and POSIX

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-17 Thread Matthew Giedt
I traced the application to the point where it calls getaddrinfo which is failing on my linux machine. It's returning 1, with the error: Name or service not known I boiled down everything to: (copied straight from ip.cpp) int main( int argc, char *argv[] ) { addrinfo req; memset (&req, 0

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-17 Thread Mike Perik
I may be missing something obvious since I more of a lurker on this list then a user, but the 'subscribing' line below states that it is subscribing on port not 5551 which the original post did when 'localhost' was used. mgi...@ubuntu:~$ ./Tester tcp://127.0.0.1:5551 tcp://127.0.0.1:5551

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-17 Thread Martin Sustrik
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: > mgi...@ubuntu:~$ ./Tester tcp://127.0.0.1:555

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-17 Thread Matthew Giedt
mgi...@ubuntu:~$ ./Tester tcp://127.0.0.1:5551 tcp://127.0.0.1:5551 test.xml publishing on: tcp://127.0.0.1:5551 success. subscribing on: tcp://127.0.0.1: terminate called after throwing an instance of 'zmq::error_t' what(): Invalid argument Aborted mgi...@ubuntu:~$ ifconfig lo loL

Re: [zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-17 Thread Martin Sustrik
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: > > publ

[zeromq-dev] ZMQ 2.0.6 connect SUB socket error

2010-03-17 Thread Matthew Giedt
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: