From f994e72eb3a80c629060c3e1f448b304b58b7844 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 29 Jan 2018 09:36:18 -0500 Subject: Added timeout to image downloads --- difference.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'difference.cpp') diff --git a/difference.cpp b/difference.cpp index 9fd3320..9c060d4 100644 --- a/difference.cpp +++ b/difference.cpp @@ -165,6 +165,8 @@ std::pair curl::curl_easy lsthandle(lstios); std::string lsturl = pictured.getNotion().getImageNetUrl(); lsthandle.add(lsturl.c_str()); + lsthandle.add(30); + lsthandle.add(300); try { @@ -277,6 +279,7 @@ Magick::Image difference::getImageAtUrl(std::string url) const imghandle.add(headers.get()); imghandle.add(url.c_str()); imghandle.add(30); + imghandle.add(300); try { -- cgit 1.4.1