From 1245a8318a028c5e5997ef31c7b7b485faadfc68 Mon Sep 17 00:00:00 2001 From: Thierry FOURNIER Date: Tue, 22 Sep 2015 00:02:58 +0200 Subject: [PATCH] MINOR: applet: add an execution timeout This patch only declares the execution timeout variable. The applet must be respect or ignore it. For example an applet who doing some network accesses and doesn't control its execution yime should use this timeout. --- include/types/applet.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/types/applet.h b/include/types/applet.h index 13817b22a..799df91a3 100644 --- a/include/types/applet.h +++ b/include/types/applet.h @@ -40,6 +40,7 @@ struct applet { expect 1 if ok, 0 if an error occurs, -1 if miss data. */ void (*fct)(struct appctx *); /* internal I/O handler, may never be NULL */ void (*release)(struct appctx *); /* callback to release resources, may be NULL */ + unsigned int timeout; /* execution timeout. */ }; /* Context of a running applet. */