afb-context: Early token change
[src/app-framework-binder.git] / src / afb-config.c
index b82f3e5..fc3f5d7 100644 (file)
@@ -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
@@ -738,7 +738,9 @@ void afb_config_dump(struct afb_config *config)
        B(no_ldpaths)
        B(noHttpd)
        B(background)
+#if defined(WITH_MONITORING_OPTION)
        B(monitoring)
+#endif
        B(random_token)
        P("---END-OF-CONFIG---\n");
 
@@ -866,7 +868,9 @@ struct json_object *afb_config_json(struct afb_config *config)
        B(no_ldpaths)
        B(noHttpd)
        B(background)
+#if defined(WITH_MONITORING_OPTION)
        B(monitoring)
+#endif
        B(random_token)
 
 #undef E