mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-04 07:27:26 +01:00
Problem: failed address resolution on TCP connect is not observable
Solution: added TODO comment for now
This commit is contained in:
parent
e45ede49b5
commit
7cf0d125d3
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user