Change the receive timeout on daemon side 86/169286/2 accepted/tizen/unified/20180208.163632 submit/tizen/20180207.230906
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 5 Feb 2018 11:41:04 +0000 (20:41 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 6 Feb 2018 01:47:31 +0000 (10:47 +0900)
Sometimes, a timing issue occures when daemon is launched.
It makes IPC error between app and daemon.
To avoid timing issue, receive timeout value is changed to 5.5 sec

Change-Id: I29153649d28eefb12c2b9bb21721463b506fdc71

packaging/download-provider.spec
provider/download-provider-client-manager.c

index 0bad763..18146b3 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       download-provider
 Summary:    Download the contents in background
-Version:    2.1.91
+Version:    2.1.92
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index 7c3b543..9e708c2 100755 (executable)
@@ -551,7 +551,7 @@ void *dp_client_manager(void *arg)
                        }
 
                        // blocking & timeout to prevent the lockup by client.
-                       struct timeval tv_timeo = {1, 500000}; // 1.5 sec
+                       struct timeval tv_timeo = {5, 500000}; // 5.5 sec
                        if (setsockopt(clientfd, SOL_SOCKET, SO_RCVTIMEO, &tv_timeo,
                                                sizeof(tv_timeo)) < 0) {
                                TRACE_ERROR("failed to set timeout in blocking socket");