lib/param: add default for cups connection timeout
authorGarming Sam <garming@catalyst.net.nz>
Tue, 7 Jan 2014 20:58:17 +0000 (09:58 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 28 Jan 2014 04:26:42 +0000 (17:26 +1300)
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/param/loadparm.c

index c2ff7a5eaea5755bc998dd76708c0924663d399c..e3fbb512b8092cfd9bf478b61db4c6a52b459747 100644 (file)
@@ -2242,6 +2242,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
 
        lpcfg_do_global_parameter(lp_ctx, "max open files", "16384");
 
+       lpcfg_do_global_parameter(lp_ctx, "cups connection timeout", "30");
+
        for (i = 0; parm_table[i].label; i++) {
                if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) {
                        lp_ctx->flags[i] |= FLAG_DEFAULT;