From 4d07d7cabe1a865812cf5d95a84557880e3c3096 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Wed, 9 Sep 2009 10:08:46 +0200 Subject: fix of async connect on win32 --- src/tcp_connecter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tcp_connecter.cpp') diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index 22caafb..7058648 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -180,8 +180,10 @@ int zmq::tcp_connecter_t::open () return 0; // Asynchronous connect was launched. - if (rc == -1 && errno == EINPROGRESS) + if (rc == -1 && errno == EINPROGRESS) { + errno = EAGAIN; return -1; + } // Error occured. int err = errno; -- cgit v1.2.3