diff --git a/CHANGES b/CHANGES index 64a0dfc9e1..b97fd04585 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +6174. [bug] BIND could get stuck on reconfiguration when a + 'listen' statement for HTTP is removed from the + configuration. That has been fixed. [GL #4071] + 6173. [bug] Properly process extra "nameserver" lines in resolv.conf otherwise the next line is not properly processed. [GL #4066] diff --git a/doc/notes/notes-current.rst b/doc/notes/notes-current.rst index 4bf86cd3db..e57a5a6c8c 100644 --- a/doc/notes/notes-current.rst +++ b/doc/notes/notes-current.rst @@ -35,7 +35,9 @@ Feature Changes Bug Fixes ~~~~~~~~~ -- None. +- BIND could get stuck on reconfiguration when a `listen` statement + for HTTP is removed from the configuration. That has been fixed. + :gl:`#4071` Known Issues ~~~~~~~~~~~~ diff --git a/lib/isc/netmgr/netmgr-int.h b/lib/isc/netmgr/netmgr-int.h index 50528af480..6e233e20fb 100644 --- a/lib/isc/netmgr/netmgr-int.h +++ b/lib/isc/netmgr/netmgr-int.h @@ -333,7 +333,6 @@ typedef enum isc__netievent_type { netievent_privilegedtask, netievent_settlsctx, - netievent_sockstop, /* for multilayer sockets */ /* * event type values higher than this will be treated @@ -350,6 +349,7 @@ typedef enum isc__netievent_type { netievent_tcpdnsstop, netievent_tlsdnslisten, netievent_tlsdnsstop, + netievent_sockstop, /* for multilayer sockets */ netievent_resume, netievent_detach, diff --git a/lib/isc/netmgr/netmgr.c b/lib/isc/netmgr/netmgr.c index 74d326aa0a..00a7945edb 100644 --- a/lib/isc/netmgr/netmgr.c +++ b/lib/isc/netmgr/netmgr.c @@ -2756,7 +2756,7 @@ isc__nmsocket_stop(isc_nmsocket_t *listener) { } if (isc__nm_in_netthread()) { - isc__nm_async_sockstop(&listener->mgr->workers[0], + isc__nm_async_sockstop(&listener->mgr->workers[isc_nm_tid()], (isc__netievent_t *)&ievent); } }