]> git.ipfire.org Git - thirdparty/bind9.git/commit
isc_nm_*connect() always return via callback
authorOndřej Surý <ondrej@sury.org>
Wed, 31 Mar 2021 16:32:32 +0000 (18:32 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 7 Apr 2021 13:36:59 +0000 (15:36 +0200)
commit86f4872dd64d28bbf551c4b2b178f5d69cce4515
treef1942a188ac9cb71401bcefb43a71e2671e4f7e5
parenta70cd026df05d4085545860f05f6b93618f594ad
isc_nm_*connect() always return via callback

The isc_nm_*connect() functions were refactored to always return the
connection status via the connect callback instead of sometimes returning
the hard failure directly (for example, when the socket could not be
created, or when the network manager was shutting down).

This commit changes the connect functions in all the network manager
modules, and also makes the necessary refactoring changes in places
where the connect functions are called.
15 files changed:
bin/rndc/rndc.c
bin/tests/test_client.c
lib/dns/xfrin.c
lib/isc/include/isc/netmgr.h
lib/isc/netmgr/http.c
lib/isc/netmgr/netmgr.c
lib/isc/netmgr/tcp.c
lib/isc/netmgr/tcpdns.c
lib/isc/netmgr/tlsdns.c
lib/isc/netmgr/tlsstream.c
lib/isc/netmgr/udp.c
lib/isc/tests/doh_test.c
lib/isc/tests/netmgr_test.c
lib/isc/tests/tls_test.c
lib/isc/tests/uv_wrap.h