Page MenuHomeSoftware Heritage

D6902.diff
No OneTemporary

D6902.diff

diff --git a/swh/loader/git/dumb.py b/swh/loader/git/dumb.py
--- a/swh/loader/git/dumb.py
+++ b/swh/loader/git/dumb.py
@@ -116,7 +116,8 @@
url = urllib.parse.urljoin(self.repo_url, path)
response = self._session.get(url, headers=HEADERS)
buffer = SpooledTemporaryFile(max_size=100 * 1024 * 1024)
- buffer.write(response.content)
+ for chunk in response.iter_content(chunk_size=10 * 1024 * 1024):
+ buffer.write(chunk)
buffer.flush()
buffer.seek(0)
return buffer

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 18, 7:40 PM (1 h, 31 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3217946

Event Timeline