You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #57224 [Mime] Use streams instead of loading raw message generator 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 #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
-------
5471940a0c [Mime] Use streams instead of loading raw message generator into memory
0 commit comments