From: Jo-Philipp Wich Date: Sat, 8 Jun 2013 07:48:35 +0000 (+0200) Subject: ubus: use half of the script timeout as timeout for acl lookup call X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=849f89381896b9654ae4bc6bc0057a0d94980fe4 ubus: use half of the script timeout as timeout for acl lookup call --- diff --git a/ubus.c b/ubus.c index 5fdfb3a..303f05e 100644 --- a/ubus.c +++ b/ubus.c @@ -427,7 +427,7 @@ static bool uh_ubus_allowed(const char *sid, const char *obj, const char *fun) blobmsg_add_string(&req, "object", obj); blobmsg_add_string(&req, "function", fun); - ubus_invoke(ctx, id, "access", req.head, uh_ubus_allowed_cb, &allow, 250); + ubus_invoke(ctx, id, "access", req.head, uh_ubus_allowed_cb, &allow, conf.script_timeout * 500); return allow; }