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
Proxy cannot handle large files #27
Comments
You can specify the limit in the options:
|
Thanks for the pointer - that will solve it for me for now. It feels a little wrong though... A proxy should not load the entire request into a buffer and then send that buffer to the target. Instead the proxy should forward the stream as data arrives, making the process faster and less memory intensive. Do you think this would be possible to implement? |
Granjow
added a commit
to Granjow/express-http-proxy
that referenced
this issue
Nov 9, 2016
This option can only be found in the code or in issue villadora#27 but is quite important to know when using the proxy for large request.
monkpow
pushed a commit
that referenced
this issue
Nov 9, 2016
This option can only be found in the code or in issue #27 but is quite important to know when using the proxy for large request.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the great Express add-on!
When trying to send a large file through the proxy (more than 1 MB), an error event is thrown:
Could you use streams instead of reading the entire body into a buffer?
The text was updated successfully, but these errors were encountered: