Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug symfony#57224 [Mime] Use streams instead of loading raw message g…
…enerator into memory (bytestream) This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Mime] Use streams instead of loading raw message generator into memory | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix symfony#51764 | License | MIT Generators can only be used once and so the previous iteration of the code loaded the contents of the generator into memory. That results in OOM errors when sending large e-mails. This PR changes the behaviour so that the generator contents are loaded into a `php://temp` stream. By default 2MB is stored in memory and the rest is written to temporary files to prevent OOM issues. Commits ------- 5471940 [Mime] Use streams instead of loading raw message generator into memory
- Loading branch information