From 6307226d12ed34af153d8540e9a45e491562a98f Mon Sep 17 00:00:00 2001 From: Kinshuk Bairagi Date: Tue, 29 Jan 2019 13:29:49 +0530 Subject: [PATCH] Reduce Curl Timeout to 5s --- tinyphone/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tinyphone/net.cpp b/tinyphone/net.cpp index 0a8cf19..413117f 100644 --- a/tinyphone/net.cpp +++ b/tinyphone/net.cpp @@ -48,7 +48,7 @@ namespace tp { curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &response.body); - curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10L); //10s timeout + curl_easy_setopt(curl, CURLOPT_TIMEOUT, 5L); //5s timeout curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, CurlHeadersCallback); curl_easy_setopt(curl, CURLOPT_WRITEHEADER, &response.headers);