|author||Loïc Hoguin <[email protected]>||2020-01-02 13:29:56 +0100|
|committer||Loïc Hoguin <[email protected]>||2020-01-02 13:29:56 +0100|
Reduce number of Transport:send/2 calls for HTTP/2
When sending a complete response it is far more efficient to send the headers and the body in one Transport:send/2 call instead of two or more, at least for small responses. This is the HTTP/2 counterpart to what was done for HTTP/1.1 many years ago in bfab8d4b22d858e7cffa97d04210a62fae56681c. In HTTP/2's case however the implementation is a little more difficult due to flow control. On the other hand the optimization will apply not only for headers/body but also for the body of multiple separate responses, which may need to be sent all at the same time when we receive a WINDOW_UPDATE frame. When a body is sent using sendfile however a separate call is still made.
Diffstat (limited to 'doc/src/guide/introduction.asciidoc')
0 files changed, 0 insertions, 0 deletions