mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
added shutdown callback to client object;
used it to abort outgoing zone transfers on client shutdown
This commit is contained in:
@@ -208,6 +208,10 @@ client_shutdown(isc_task_t *task, isc_event_t *event) {
|
||||
CTRACE("shutdown");
|
||||
|
||||
client->shuttingdown = ISC_TRUE;
|
||||
|
||||
if (client->shutdown != NULL)
|
||||
(client->shutdown)(client->shutdown_arg);
|
||||
|
||||
maybe_free(client);
|
||||
|
||||
isc_event_free(&event);
|
||||
@@ -850,6 +854,8 @@ client_create(ns_clientmgr_t *manager, ns_clienttype_t type,
|
||||
client->opt = NULL;
|
||||
client->udpsize = 512;
|
||||
client->next = NULL;
|
||||
client->shutdown = NULL;
|
||||
client->shutdown_arg = NULL;
|
||||
dns_name_init(&client->signername, NULL);
|
||||
client->mortal = ISC_FALSE;
|
||||
client->quota = NULL;
|
||||
|
Reference in New Issue
Block a user