Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Never cache thru disk implicitly #3159

Open
mvorisek opened this issue Aug 13, 2023 · 3 comments
Open

Never cache thru disk implicitly #3159

mvorisek opened this issue Aug 13, 2023 · 3 comments

Comments

@mvorisek
Copy link

mvorisek commented Aug 13, 2023

Description

In a few places in this lib and guzzle/psr7 repo php://temp stream is used to store temporary data.

Caching thru disk by default is not expected by a HTTP library.

This is a feature request to change all php://temp to php://memory.

If user needs to process huge files, he should pass php://temp manually with awareness it can be slow and imply huge disk IO.

(related with #3115 as stream processing is the best option vs. buffering the whole response)

@TimWolla
Copy link
Contributor

Caching thru disk by default is not expected by a HTTP library.

[citation needed]

@mvorisek
Copy link
Author

It is my opinion, at least I do not want any disk IO for temporary data when HTTP download is involved.

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions.

@stale stale bot added lifecycle/stale No activity for a long time and removed lifecycle/stale No activity for a long time labels Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants