Fix ITC fail issue 75/47475/1 accepted/tizen/mobile/20150903.233712 accepted/tizen/tv/20150903.233721 accepted/tizen/wearable/20150903.233733 submit/tizen/20150903.144228
authormin7.choi <min7.choi@samsung.com>
Thu, 3 Sep 2015 14:35:25 +0000 (23:35 +0900)
committermin7.choi <min7.choi@samsung.com>
Thu, 3 Sep 2015 14:35:29 +0000 (23:35 +0900)
- DOWNLOAD_ERROR_IO_ERROR

Change-Id: I4b7e4cd23925380ed4225ad2d8a2169f62cd55d7
Signed-off-by: min7.choi <min7.choi@samsung.com>
provider-interface/download-provider-interface.c
provider/download-provider-client-manager.c

index b6c81a1..ef51234 100755 (executable)
@@ -429,7 +429,7 @@ static int __connect_to_provider()
                                ts.tv_nsec = 20000000;
                                nanosleep(&ts, NULL);
                        } else if (ret >= 0) {
-                               struct timeval tv_timeo = { 1, 500000 }; // 1.5 second
+                               struct timeval tv_timeo = { 5, 500000 }; // 5.5 second
                                g_dp_client->channel = ret;
                                if (setsockopt(g_dp_client->channel, SOL_SOCKET, SO_RCVTIMEO, &tv_timeo, sizeof(tv_timeo)) < 0) {
                                        TRACE_STRERROR("[CRITICAL] setsockopt SO_RCVTIMEO");
index d94c01f..5eba123 100644 (file)
@@ -594,7 +594,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");