diff options
author | Loïc Hoguin <[email protected]> | 2019-09-13 10:52:10 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2019-09-13 10:52:10 +0200 |
commit | 4194682d4edaee3da34783c46a513698eb1e8d05 (patch) | |
tree | 6e43ee4ed6a52e9b1f44c0eede4673b42f6ca21e /erlang.mk | |
parent | 585c1dcd001c2cb41cc77216aed2cf729fad6cc7 (diff) | |
download | gun-4194682d4edaee3da34783c46a513698eb1e8d05.tar.gz gun-4194682d4edaee3da34783c46a513698eb1e8d05.tar.bz2 gun-4194682d4edaee3da34783c46a513698eb1e8d05.zip |
Use cow_http2_machine:ensure_window
Gun was very inefficient at receiving HTTP/2 bodies. Switching
to ensure_window and increasing the default window sizes brings
the response body reading performance at least on par with the
one for HTTP/1.1.
This has a small negative impact on message flow control because
we stop updating the window later than we did before, increasing
the number of extra messages we may send. The exact amount depends
on configuration and the exact moment flow control kicks in.
Diffstat (limited to 'erlang.mk')
0 files changed, 0 insertions, 0 deletions