Fix Cynara cache size 22/70422/1
authormin7.choi <min7.choi@samsung.com>
Thu, 19 May 2016 07:46:28 +0000 (16:46 +0900)
committermin7.choi <min7.choi@samsung.com>
Thu, 19 May 2016 07:46:28 +0000 (16:46 +0900)
Change-Id: Ib05a72332493cdd5e60b05d7c1e2ca34f45d8c2d
Signed-off-by: min7.choi <min7.choi@samsung.com>
packaging/download-provider.spec
provider/download-provider-client-manager.c

index 6e0534c..4150bc2 100755 (executable)
@@ -1,7 +1,7 @@
 %define _ux_define tizen2.3
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.51
+Version:    2.1.52
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index 9f89fff..e59e966 100644 (file)
@@ -433,10 +433,17 @@ static int __dp_client_new(int clientfd, dp_client_slots_fmt *clients,
        TRACE_DEBUG("SUPPORT_SECURITY_PRIVILEGE");
        // Cynara structure init
        int ret;
-       cynara *p_cynara;
+       cynara *p_cynara = NULL;
+       cynara_configuration *p_conf;
+       size_t cache_size = 100;
        //cynara_configuration conf;
+
+       if (CYNARA_API_SUCCESS != cynara_configuration_create(&p_conf))  { /* error */}
+       if (CYNARA_API_SUCCESS != cynara_configuration_set_cache_size(p_conf, cache_size)) { /* error */ }
+
        ret = cynara_initialize(&p_cynara, NULL);
        if(ret != CYNARA_API_SUCCESS) { /* error */ }
+       cynara_configuration_destroy(p_conf);
 
        // Get client peer credential
        char *clientSmack;