summaryrefslogtreecommitdiffstats
path: root/tedge
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-03-23 10:20:28 +0100
committerMatthias Beyer <matthias.beyer@ifm.com>2022-03-23 11:43:38 +0100
commitc4bc1c63ef834c01b898537fac4217e81ddeb225 (patch)
treea53a30f60082df9782a696c46a7ba83a6a4f9feb /tedge
parent90ede1711ca1f0448f484f681d81fbe443ff4a89 (diff)
Add implementation for timeout in plugin shutdown
This patch adds the implementation for timeouting plugin shutdown routines. This is required if a plugin behaves badly and `loop{}`s in its shutdown implementation (either by programmer error or because it is waiting for some resource to close for example). By giving the user a configurable shutdown timeout, thin-edge can "kill" plugins if their shutdown procedure takes too long. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com> Tested-by: Matthias Beyer <matthias.beyer@ifm.com> Signed-off-by: Marcel Müller <m.mueller@ifm.com>
Diffstat (limited to 'tedge')
-rw-r--r--tedge/example-config.toml2
1 files changed, 2 insertions, 0 deletions
diff --git a/tedge/example-config.toml b/tedge/example-config.toml
index 6dfda846..3195b9b7 100644
--- a/tedge/example-config.toml
+++ b/tedge/example-config.toml
@@ -1,5 +1,7 @@
communication_buffer_size = 10
+plugin_shutdown_timeout_ms = 10000
+
[plugins]