From e9b7b5e84ea3c6715c472ef0e6df38d6b01f93f7 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 13 Mar 2018 16:29:54 -0400 Subject: Added timeout to image downloads --- capital.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'capital.cpp') diff --git a/capital.cpp b/capital.cpp index 3488c1d..dd7f129 100644 --- a/capital.cpp +++ b/capital.cpp @@ -128,6 +128,8 @@ Magick::Image capital::getImageForNoun(verbly::word pictured) const curl::curl_easy lsthandle(lstios); std::string lsturl = pictured.getNotion().getImageNetUrl(); lsthandle.add(lsturl.c_str()); + lsthandle.add(30); + lsthandle.add(300); try { @@ -186,6 +188,7 @@ Magick::Image capital::getImageForNoun(verbly::word pictured) const imghandle.add(headers.get()); imghandle.add(url.c_str()); imghandle.add(30); + imghandle.add(300); try { -- cgit 1.4.1