summaryrefslogtreecommitdiffstats
path: root/daemon/network.c
diff options
context:
space:
mode:
authorGrigorii Demidov <grigorii.demidov@nic.cz>2017-09-12 13:52:10 +0200
committerPetr Špaček <petr.spacek@nic.cz>2018-01-08 12:00:52 +0100
commite7c5c102d0eb83aeb42df57352e3c0dad7a2c80b (patch)
treee35794d706ceb743e351d70e4bcc4e3cb6aaf452 /daemon/network.c
parentMerge !430: Travis fixes and dependency updates (diff)
downloadknot-resolver-e7c5c102d0eb83aeb42df57352e3c0dad7a2c80b.tar.xz
knot-resolver-e7c5c102d0eb83aeb42df57352e3c0dad7a2c80b.zip
daemon: reuse outbound TCP connections if possible; TLS over outbound TCP connection
Diffstat (limited to 'daemon/network.c')
-rw-r--r--daemon/network.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/network.c b/daemon/network.c
index 40b2ac01..e181cae7 100644
--- a/daemon/network.c
+++ b/daemon/network.c
@@ -51,6 +51,7 @@ void network_init(struct network *net, uv_loop_t *loop)
if (net != NULL) {
net->loop = loop;
net->endpoints = map_make();
+ net->tls_client_params = map_make();
}
}
@@ -106,6 +107,7 @@ void network_deinit(struct network *net)
map_walk(&net->endpoints, free_key, 0);
map_clear(&net->endpoints);
tls_credentials_free(net->tls_credentials);
+ tls_client_params_free(&net->tls_client_params);
net->tls_credentials = NULL;
}
}