forked from lastpass/lastpass-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload-queue: tweak timeouts and give up after 5 failures
Previously we would repeat the same request five times over a total of 45 seconds, with a max of 10 seconds between the last two requests. This might be too little in case a rate limit is hit, so make this increase exponentially so that the final attempt is over five minutes after the previous one, but first few requests happen within a minute. With that change, we no longer need to sleep 30 seconds after a failed request. If we get a server response after five successive tries, go ahead and move the request into a separate directory so that we won't get stuck trying the same request over and over again. Signed-off-by: Bob Copeland <[email protected]>
- Loading branch information
Bob Copeland
committed
Jan 4, 2016
1 parent
285833a
commit 0b938d9
Showing
2 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters