aboutsummaryrefslogtreecommitdiff
path: root/plugin.md
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2019-11-17 02:02:46 +0000
committerGravatar Yong Tang <yong.tang.github@outlook.com> 2019-11-16 18:02:46 -0800
commite14e053d3df3e607dc0e9fd7bb43d64eaf581162 (patch)
tree3d5772eb9cdef71199a2cb38ed76e2e662a10d44 /plugin.md
parent4831e7f9477dcdc7847b0a76fab09fcd17447bb2 (diff)
downloadcoredns-e14e053d3df3e607dc0e9fd7bb43d64eaf581162.tar.gz
coredns-e14e053d3df3e607dc0e9fd7bb43d64eaf581162.tar.zst
coredns-e14e053d3df3e607dc0e9fd7bb43d64eaf581162.zip
create pkg/reuseport (#3455)
* create pkg/reuseport Move the core server listening functions to a new package so plugins can use them. Also make *all* servers use the functions here; as only the udp/tcp listeners where using SO_REUSEPORT (if available). This is the only actual change in this PR; in it's core it's just a move of 2 files. This can also be used to cleanup the dance we're doing now for re-acquiring the sockets in e.g. the metrics plugins and the ready plugin. Signed-off-by: Miek Gieben <miek@miek.nl> * Also push a small doc update Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin.md')
-rw-r--r--plugin.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugin.md b/plugin.md
index f00cfe712..915ff8fc2 100644
--- a/plugin.md
+++ b/plugin.md
@@ -64,6 +64,11 @@ a *Metrics* section detailing the metrics.
If the plugin supports signalling readiness it should have a *Ready* section detailing how it
works, and implement the `ready.Readiness` interface.
+## Opening Sockets
+
+See the plugin/pkg/reuseport for `Listen` and `ListenPacket` functions. Using these functions makes
+you plugin handle reload events better.
+
## Documentation
Each plugin should have a README.md explaining what the plugin does and how it is configured. The