issue 31 - Assertion failed: err == ECONNREFUSED || err == ETIMEDOUT (tcp_connecter.cpp:296)

This commit is contained in:
Martin Sustrik 2010-06-10 07:12:00 +02:00
parent 604f7475ec
commit d329c55da9

View File

@ -293,7 +293,8 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
// Assert that the error was caused by 0MQ bug.
// Networking problems are OK. No need to assert.
zmq_assert (err == ECONNREFUSED || err == ETIMEDOUT);
zmq_assert (err == ECONNREFUSED || err == ECONNRESET ||
err == ETIMEDOUT);
errno = err;
return retired_fd;