aboutsummaryrefslogtreecommitdiffstats
path: root/doc/src/manual/cowboy.asciidoc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-01-02 13:29:56 +0100
committerLoïc Hoguin <[email protected]>2020-01-02 13:29:56 +0100
commit592029070dea7c1f7b85d465e250ef6842e1a46b (patch)
treea52ad6276da55a693d4d0a42b2bad8606400ac49 /doc/src/manual/cowboy.asciidoc
parent3a7232b019f975a594a696eace46abcbfeec5b2e (diff)
downloadcowboy-592029070dea7c1f7b85d465e250ef6842e1a46b.tar.gz
cowboy-592029070dea7c1f7b85d465e250ef6842e1a46b.tar.bz2
cowboy-592029070dea7c1f7b85d465e250ef6842e1a46b.zip
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/manual/cowboy.asciidoc')
0 files changed, 0 insertions, 0 deletions