[UTC][player][Non-ACR][Set connection timeout] 26/263626/1
authorEunhye Choi <eunhae1.choi@samsung.com>
Thu, 29 Jul 2021 02:27:11 +0000 (11:27 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Tue, 7 Sep 2021 06:29:42 +0000 (06:29 +0000)
- set connection timeout to avoid block
  according to the network or server status

Change-Id: Icaa44e6fd7a426790c690fa9a5c599841cd7f860
(cherry picked from commit f9eedf53e714cf81eb9459ebd7aed375852ebb0d)

src/utc/player/utc-media-player-streaming.c

index 9722fbc9a4bf857ac30fee9413c9b057b137876c..80ef3d05d38fae12719573ecb8407a5e3d7441bc 100644 (file)
@@ -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);