comparison Framework/HttpQueries/HttpQueriesQueue.cpp @ 10:c9e28e31262e

new option: MaxHttpRetries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Mar 2019 15:26:49 +0100
parents 7e207ade2f1a
children b06103a50c95
comparison
equal deleted inserted replaced
9:7e207ade2f1a 10:c9e28e31262e
212 else 212 else
213 { 213 {
214 // Error: Let's retry 214 // Error: Let's retry
215 retry ++; 215 retry ++;
216 216
217 if (retry < maxRetries) 217 if (retry <= maxRetries)
218 { 218 {
219 // Wait 1 second before retrying 219 // Wait 1 second before retrying
220 boost::this_thread::sleep(boost::posix_time::seconds(1)); 220 boost::this_thread::sleep(boost::posix_time::seconds(1));
221 } 221 }
222 else 222 else