'Assertion failed: rc == 0 (zmq_connecter.cpp:48)'
Description
Environment
Activity
PieterP September 15, 2011 at 6:57 PM
I assume we'll get either EAI_NONAME or EAI_NODATA (at least on POSIX boxes) from getaddrinfo() if it fails. Do you have any suggestions for errno's to use in these cases? The code is in ip.cpp:337.
JingL September 15, 2011 at 5:25 AM
Hi, do you think it would be better if the error message is connection error/DNS error or something else instead of invalid argument?
JingL August 30, 2011 at 1:23 PM
Yes, it works. Thank you.
PieterP August 30, 2011 at 11:53 AM
Leo, I've pushed a fix for this to 2-1 master (at https://github.com/zeromq/zeromq2-1), can you test it?
JingL August 30, 2011 at 4:57 AM
Thanks for your reply.
I think I get your point, but even if we cannot return an error code, is it possible make it not crash first?
I mean can we just remove the assertion?
It's annoying that the program crashes when network is unavailable.
You can try this small python script with your network cable unplugged. The program crashes every time.
I don't know if you agree with me that as a library, you shouldn't crash the whole program, at least give the program a chance to handle exceptions.
Thanks.
I got a 'Assertion failed: rc == 0 (zmq_connecter.cpp:48)'
When I accidentally used "tcp://localhost:localhost" in a connect.