diff options
author | 2018-01-14 03:09:14 -0500 | |
---|---|---|
committer | 2018-01-14 08:09:14 +0000 | |
commit | 1112145f5aba0c9c07c69966fd3f8b39852ce421 (patch) | |
tree | 46077202f22ff33a85fd64641e762d1e13b45018 /test | |
parent | e50c425d67e1c41a9673f94f238963a4694137e4 (diff) | |
download | coredns-1112145f5aba0c9c07c69966fd3f8b39852ce421.tar.gz coredns-1112145f5aba0c9c07c69966fd3f8b39852ce421.tar.zst coredns-1112145f5aba0c9c07c69966fd3f8b39852ce421.zip |
Allow graceful restart when using TLS listener (#1389)
The original ServergRPC.Listen() method returns a tls.Listener
when tls protocol is specified. Unfortunate, tls.Listener
does not implement the caddy.Listener interface that is
needed for graceful restart to work.
The change is to have the ServergRPC.Listen() method returns the
inner net.Listener instead. The creation of the tls.Listener
is deferred to the ServergRPC.Serve() method.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions