fix of async connect on win32

This commit is contained in:
Martin Sustrik
2009-09-09 10:08:46 +02:00
parent c99f39abc6
commit 4d07d7cabe
2 changed files with 4 additions and 2 deletions

View File

@@ -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;