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

Add request temp file buffer (#3479) #3659

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Milkdove
Copy link
Contributor

@Milkdove Milkdove commented Jan 7, 2025

Add the feature of using temp file as intermediaries when forwarding large requests, which can effectively solve the OOM, and added two configs to control it:

spring.cloud.gateway.mvc.file-buffer-enabled 
spring.cloud.gateway.mvc.file-buffer-size-threshold

I'm not sure if this solution is appropriate. It may cause some large requests to be slowed down.But I don’t have any other ideas at the moment. This is the solution our team uses. In addition, should the default value of file-buffer-enabled be true?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants