From: Thierry FOURNIER Date: Mon, 21 Sep 2015 22:02:58 +0000 (+0200) Subject: MINOR: applet: add an execution timeout X-Git-Tag: v1.6-dev6~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1245a8318a028c5e5997ef31c7b7b485faadfc68;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/types/applet.h b/include/types/applet.h index 13817b22aa..799df91a33 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. */