Skip to content

Commit

Permalink
Merge pull request #27530 from owncloud/stable9.1-gdrive-retries-backoff
Browse files Browse the repository at this point in the history
[stable9.1] Enable GDrive retries and backoff for rate limit
  • Loading branch information
Vincent Petry authored Apr 3, 2017
2 parents 2c3ed15 + 7d69ff0 commit d973c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/files_external/lib/Lib/Storage/Google.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public function __construct($params) {
if (!function_exists('curl_version') || !function_exists('curl_exec')) {
$this->client->setClassConfig("Google_Http_Request", "disable_gzip", true);
}
$this->client->setClassConfig('Google_Task_Runner', 'retries', 5);
// note: API connection is lazy
$this->service = new \Google_Service_Drive($this->client);
$token = json_decode($params['token'], true);
Expand Down

0 comments on commit d973c12

Please sign in to comment.