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 --- libcore/curlfuncs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libcore/curlfuncs.c') 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