Skip to content
Snippets Groups Projects

dumb: Fix streaming of HTTP responses

1 unresolved thread

When using the requests library to perform HTTP requests, if responses need to be streamed the stream parameter must be set to True to ensure content is downloaded by chunks.

Previously, a whole HTTP response was cached in memory which could lead to OOM errors when dealing with a repository with large pack files.

I noticed the issue as I did not understand why the new visits of https://git.texlive.info/texlive have their final status to created. I tested locally and got the loader process OOM killed as that repository has gigantic pack files the loader needs to download.

Merge request reports

Pipeline #7312 passed

Pipeline passed for b7d16897 on anlambert:dump-fix-http-stream-reponse

Approved by

Merged by Antoine LambertAntoine Lambert 1 year ago (Feb 22, 2024 1:18pm UTC)

Merge details

  • Changes merged into master with b7d16897.
  • Deleted the source branch.

Pipeline #7315 failed

Pipeline failed for b7d16897 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading