]> git.kaiwu.me - nginx.git/commit
HTTP/2: reworked body reading to better match HTTP/1.x code.
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 29 Aug 2021 19:20:36 +0000 (22:20 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 29 Aug 2021 19:20:36 +0000 (22:20 +0300)
commit78d9a3af91a31bb77ad74aca7286f1ef2dad89d6
tree087eb8c431e659b665a5d00b5a7e3d5b0e1605ef
parent301efb8a73b7f14e41e2238cfef50b2b98137eab
HTTP/2: reworked body reading to better match HTTP/1.x code.

In particular, now the code always uses a buffer limited by
client_body_buffer_size.  At the cost of an additional copy it
ensures that small DATA frames are not directly mapped to small
write() syscalls, but rather buffered in memory before writing.
Further, requests without Content-Length are no longer forced
to use temporary files.
src/http/v2/ngx_http_v2.c