From: José Bollo Date: Thu, 15 Feb 2018 15:54:47 +0000 (+0100) Subject: afb-config: Increase the default timeout of sessions X-Git-Tag: flounder_5.99.1~67 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f7b281af2b449de0c9cddde6d455b17905631a75;p=src%2Fapp-framework-binder.git afb-config: Increase the default timeout of sessions The management of sessions is not very well understood actually. People are using it without refreshing the token. This has the effect that the binder closes sessions after one hour. So no demo can run more than one hour! Increasing the timeout to more than one year will solve the demo problem but will not fully solve the overall problem. Bug-AGL: SPEC-1296 Bug-AGL: SPEC-1293 Change-Id: Icb9adb4939a138c19be36280bf1e6643d04489ae Signed-off-by: José Bollo --- diff --git a/src/afb-config.c b/src/afb-config.c index b82f3e57..f7e50008 100644 --- a/src/afb-config.c +++ b/src/afb-config.c @@ -40,8 +40,8 @@ #endif // default -#define DEFLT_CNTX_TIMEOUT 3600 // default Client Connection - // Timeout +#define DEFLT_CNTX_TIMEOUT 32000000 // default Client Connection + // Timeout: few more than one year #define DEFLT_API_TIMEOUT 20 // default Plugin API Timeout [0=NoLimit // for Debug Only] #define DEFLT_CACHE_TIMEOUT 100000 // default Static File Chache