benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

Hackney can not handle very large responses. #729

Open paulanthonywilson opened 1 year ago

paulanthonywilson commented 1 year ago

With a response body of more than 67,110,167 bytes (which is admittedly pretty big) hackney returns a enomem. Confirmed that the behaviour is the same on Linux, OS X, and Windows.

https://github.com/paulanthonywilson/enomem/blob/main/nomem_client/README.md confirms the issues.

You may not want to support such very large responses, but thought you should know.

benoitc commented 9 months ago

@paulanthonywilson you can stream the response. I don't see any limit per see related to hackney when you stream the body.