aboutsummaryrefslogtreecommitdiffstats
path: root/test/flow_SUITE.erl
AgeCommit message (Collapse)Author
2020-03-28Improve the flow_SUITE:flow_ws test caseLoïc Hoguin
Make sure we don't queue too much on the socket because in that case Gun will just consume everything it's already got.
2020-03-23Fix flow control test since it's more strict nowLoïc Hoguin
2019-09-22Increase a timeout to avoid an intermittent test failureLoïc Hoguin
I'm not exactly sure why it works but it seems to be solid now. I think the issue is around timeouts in the test and handler being too close to one another.
2019-09-13Use cow_http2_machine:ensure_windowLoïc Hoguin
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.
2019-08-05Add flow controlLoïc Hoguin
Flow control is disabled by default. The initial flow value must be set to enable it (either for the entire connection or on a per-request basis). Flow applies to all HTTP streams as well as Websocket. HTTP/2 pushed streams receive the same value as their originating stream.