diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2018-03-14 17:22:18 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2018-03-14 23:21:26 +0200 |
commit | 649a04b9deec5d111e735bc47c37adca7e76f39e (patch) | |
tree | c651192f145575fc7a49d591738f9cfc6e80e6d8 /lib/reqsign.c | |
parent | ae194ce922bff039e9003f1e84d44132aab63c3e (diff) | |
download | eclat-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/reqsign.c')
-rw-r--r-- | lib/reqsign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reqsign.c b/lib/reqsign.c index 9572961..05988ed 100644 --- a/lib/reqsign.c +++ b/lib/reqsign.c @@ -1,5 +1,5 @@ /* This file is part of Eclat. - Copyright (C) 2012-2015 Sergey Poznyakoff. + Copyright (C) 2012-2018 Sergey Poznyakoff. Eclat is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -216,7 +216,7 @@ requestsign4(struct ec2_request *req, char *secret) grecs_txtacc_grow_char(acc, '\n'); grecs_txtacc_grow_string(acc, req->uri); grecs_txtacc_grow_char(acc, '\n'); - /* Append a canonicalized request string */ + /* Append canonicalized request string */ for (i = 0; i < n; i++) { struct ec2_param *p, key; |