From: Seonah Moon Date: Mon, 5 Feb 2018 11:41:04 +0000 (+0900) Subject: Change the receive timeout on daemon side X-Git-Tag: accepted/tizen/unified/20180208.163632^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F86%2F169286%2F2;p=platform%2Fframework%2Fweb%2Fdownload-provider.git Change the receive timeout on daemon side 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 --- diff --git a/packaging/download-provider.spec b/packaging/download-provider.spec index 0bad763..18146b3 100755 --- a/packaging/download-provider.spec +++ b/packaging/download-provider.spec @@ -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 diff --git a/provider/download-provider-client-manager.c b/provider/download-provider-client-manager.c index 7c3b543..9e708c2 100755 --- a/provider/download-provider-client-manager.c +++ b/provider/download-provider-client-manager.c @@ -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");