libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [5/8] libcloud git commit: S3 download as stream use default chunk size instead of 1 byte
Date Fri, 13 Jan 2017 00:42:49 GMT
S3 download as stream use default chunk size instead of 1 byte


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5cb31d44
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5cb31d44
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5cb31d44

Branch: refs/heads/trunk
Commit: 5cb31d44dc9c1c34a897576c4310f9b51b550997
Parents: 1eb5883
Author: Anthony Shaw <anthonyshaw@apache.org>
Authored: Thu Jan 12 16:16:11 2017 +1100
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Thu Jan 12 16:16:11 2017 +1100

----------------------------------------------------------------------
 libcloud/storage/drivers/s3.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5cb31d44/libcloud/storage/drivers/s3.py
----------------------------------------------------------------------
diff --git a/libcloud/storage/drivers/s3.py b/libcloud/storage/drivers/s3.py
index a0b8ef0..ce25ebe 100644
--- a/libcloud/storage/drivers/s3.py
+++ b/libcloud/storage/drivers/s3.py
@@ -419,7 +419,7 @@ class BaseS3StorageDriver(StorageDriver):
         return self._get_object(
             obj=obj, callback=read_in_chunks,
             response=response,
-            callback_kwargs={'iterator': response.iter_content(),
+            callback_kwargs={'iterator': response.iter_content(CHUNK_SIZE),
                              'chunk_size': chunk_size},
             success_status_code=httplib.OK)
 


Mime
View raw message