summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-04 17:46:47 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-04 17:46:47 +0100
commit30076c4f7a5b0c70ef0c5a6574cac531bc996f5e (patch)
treee941bc52284b71bc6c80d6293ae5fa587c3c39f6
parentc46b7ed1978ead346022577ff015b092f3257c84 (diff)
ZMQII-58: TCP connecting asserts on Win32 (same fix for POSIX)
-rw-r--r--src/tcp_connecter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp
index 559129e..6dbb934 100644
--- a/src/tcp_connecter.cpp
+++ b/src/tcp_connecter.cpp
@@ -275,7 +275,7 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
// Assert that the error was caused by the networking problems
// rather than 0MQ bug.
- zmq_assert (err == ECONNREFUSED);
+ zmq_assert (err == ECONNREFUSED || err == ETIMEDOUT);
errno = err;
return retired_fd;