From 12e65e785ebcb9d7dcb446c68b1ad4b64b20ce17 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 31 May 2015 07:02:15 +0200 Subject: added timeout for preview screenshot downloading --- HISTORY | 2 ++ libcore/curlfuncs.c | 1 + 2 files changed, 3 insertions(+) diff --git a/HISTORY b/HISTORY index 1c4ec2e..991c78f 100644 --- a/HISTORY +++ b/HISTORY @@ -348,4 +348,6 @@ Version 0.4.8 Version 0.5.0 - fixed display of channel separators +- added some debug output when installing skins +- added timeout for preview screenshot downloading diff --git a/libcore/curlfuncs.c b/libcore/curlfuncs.c index ed1ea01..c6dfee5 100644 --- a/libcore/curlfuncs.c +++ b/libcore/curlfuncs.c @@ -85,6 +85,7 @@ inline void InitCurlLibraryIfNeeded() curl_easy_setopt(curlfuncs::curl, CURLOPT_WRITEDATA, 0); // Set option to write to string curl_easy_setopt(curlfuncs::curl, CURLOPT_FOLLOWLOCATION, TRUE); curl_easy_setopt(curlfuncs::curl, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Mayukh's libcurl wrapper http://www.mayukhbose.com/)"); + curl_easy_setopt(curlfuncs::curl, CURLOPT_TIMEOUT, 5L); curlfuncs::bInitialized = true; } } -- cgit v1.2.3