Problem: failed address resolution on TCP connect is not observable

Solution: added TODO comment for now
This commit is contained in:
Simon Giesecke 2019-02-07 11:07:37 +01:00
parent e45ede49b5
commit 7cf0d125d3
2 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,8 @@ int zmq::socks_connecter_t::connect_to_proxy ()
_s = tcp_open_socket (_addr->address.c_str (), options, false, false,
_addr->resolved.tcp_addr);
if (_s == retired_fd) {
// TODO we should emit some event in this case!
LIBZMQ_DELETE (_addr->resolved.tcp_addr);
return -1;
}

View File

@ -177,6 +177,8 @@ int zmq::tcp_connecter_t::open ()
_s = tcp_open_socket (_addr->address.c_str (), options, false, true,
_addr->resolved.tcp_addr);
if (_s == retired_fd) {
// TODO we should emit some event in this case!
LIBZMQ_DELETE (_addr->resolved.tcp_addr);
return -1;
}