redrabbit / git.limo

A Git source code management tool powered by Elixir with easy installation & high extensibility.
https://git.limo
MIT License
497 stars 42 forks source link

Stream request body in Git Smart HTTP backend implementation #55

Closed redrabbit closed 5 years ago

redrabbit commented 5 years ago

Currently we are reading the entire body request at once in GitGud.SmartHTTPBackend. I think this leads to #39 because the body might be really big sometimes.

Using Plug.Conn.read_body/2 with the :length option, we could chunk incoming data and work in a similar way than GitGud.SSHServer.