From 31a8d2f8541384cfecfecfa5b872edb424b1ec14 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 13 Mar 2018 16:39:39 -0400 Subject: Added timeout to image downloads --- grunge.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'grunge.cpp') diff --git a/grunge.cpp b/grunge.cpp index 251be99..bc3c560 100644 --- a/grunge.cpp +++ b/grunge.cpp @@ -158,6 +158,8 @@ Magick::Image grunge::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 { @@ -215,6 +217,7 @@ Magick::Image grunge::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