Skip to content

Commit

Permalink
Reduce Curl Timeout to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster committed Jan 29, 2019
1 parent c1beac4 commit 6307226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinyphone/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6307226

Please sign in to comment.