summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tcp_connecter.cpp3
1 files changed, 2 insertions, 1 deletions
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;