From d329c55da9c503e82831e940b0fc8dc9e5479975 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 10 Jun 2010 07:12:00 +0200 Subject: issue 31 - Assertion failed: err == ECONNREFUSED || err == ETIMEDOUT (tcp_connecter.cpp:296) --- src/tcp_connecter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tcp_connecter.cpp') diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index 6102972..cd0ebc8 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -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; -- cgit v1.2.3