Problem: regression introduced by 68d520e, changing behaviour of unblocking sockets

Solution: move unblock call to original location
This commit is contained in:
Simon Giesecke
2019-02-07 11:02:57 +01:00
parent db8c26fce3
commit e45ede49b5
3 changed files with 6 additions and 3 deletions

View File

@@ -182,6 +182,9 @@ int zmq::tcp_connecter_t::open ()
}
zmq_assert (_addr->resolved.tcp_addr != NULL);
// Set the socket to non-blocking mode so that we get async connect().
unblock_socket (_s);
const tcp_address_t *const tcp_addr = _addr->resolved.tcp_addr;
int rc;