From: Eunhye Choi Date: Thu, 29 Jul 2021 02:27:11 +0000 (+0900) Subject: [UTC][player][Non-ACR][Set connection timeout] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d2316470340c4912d4d20b7a97f262ef5d5813b;p=test%2Ftct%2Fnative%2Fapi.git [UTC][player][Non-ACR][Set connection timeout] - set connection timeout to avoid block according to the network or server status Change-Id: Icaa44e6fd7a426790c690fa9a5c599841cd7f860 (cherry picked from commit f9eedf53e714cf81eb9459ebd7aed375852ebb0d) --- diff --git a/src/utc/player/utc-media-player-streaming.c b/src/utc/player/utc-media-player-streaming.c index 9722fbc9a..80ef3d05d 100644 --- a/src/utc/player/utc-media-player-streaming.c +++ b/src/utc/player/utc-media-player-streaming.c @@ -103,7 +103,8 @@ bool check_online_status(char *media_path) curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_URL, media_path); - curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 4500L); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 10000L); + curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 10000L); curl_easy_setopt(curl, CURLOPT_NOBODY, 1L); curl_easy_setopt(curl, CURLOPT_IPRESOLVE, 1L);