aboutsummaryrefslogtreecommitdiff
path: root/lib/istore.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-03-14 17:22:18 +0200
committerSergey Poznyakoff <gray@gnu.org>2018-03-14 23:21:26 +0200
commit649a04b9deec5d111e735bc47c37adca7e76f39e (patch)
treec651192f145575fc7a49d591738f9cfc6e80e6d8 /lib/istore.c
parentae194ce922bff039e9003f1e84d44132aab63c3e (diff)
downloadeclat-649a04b9deec5d111e735bc47c37adca7e76f39e.tar.gz
eclat-649a04b9deec5d111e735bc47c37adca7e76f39e.tar.bz2
Implement exponential backoff with jitter to handle RequestLimitExceeded
* src/eclat.h (eclat_command_env) <curl>: Remove. <xmltree>: New field. * src/util.c (translate_ids): Close the map when no longer needed (eclat_send_request): Implement exponential backoff. * src/ec2map.c: Reflect the above changes. * src/eclat.c: Likewise. * lib/libeclat.h (eclat_request_dup): New proto. * lib/reqcreat.c (eclat_request_dup): New function. * src/config.c: New configuration statements: max-retry-interval and retry-timeout.
Diffstat (limited to 'lib/istore.c')
-rw-r--r--lib/istore.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/istore.c b/lib/istore.c
index dea3a53..8b46b64 100644
--- a/lib/istore.c
+++ b/lib/istore.c
@@ -29,7 +29,6 @@ acc_cb(void *ptr, size_t size, size_t nmemb, void *data)
CURL *
instance_store_curl_new(struct grecs_txtacc *acc)
{
- CURLcode res;
CURL *curl;
curl = curl_easy_init();
@@ -46,7 +45,6 @@ instance_store_read(const char *url, CURL *curl)
{
CURLcode res;
long http_resp;
- char *text;
curl_easy_setopt(curl, CURLOPT_URL, url);

Return to:

Send suggestions and report system problems to the System administrator.