diff options
author | typeless <typeless@users.noreply.github.com> | 2016-12-24 08:50:12 +0800 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2016-12-23 19:50:12 -0500 |
commit | cdedc2d188ad0e0a366c0cf9747011be2cbb2eff (patch) | |
tree | ecb9637823fc122f863891b66015b948798a83f7 /routers/dev | |
parent | 42a3bbb0f426720ac4f95a5ca7832f008156cb82 (diff) |
Use temporary file to avoid out-of-memory when receiving big chunks. (#3748)
* Use temporary file to avoid out-of-memory when receiving big chunk.
Not perfect but I think it's a reasonable solution.
For small request bodies, I suppose performance wouldn't be an issue.
For large ones, this seems to be a necessary evil.
* Must close the open file to avoid fd leaks
Diffstat (limited to 'routers/dev')
0 files changed, 0 insertions, 0 deletions