0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/test
Loïc Hoguin 48f417ac8f
Fix and optimize sending of WINDOW_UPDATE frames
For long-running connections it was possible for the connection
window to become larger than allowed by the protocol because the
window increases claimed by stream handlers were never reclaimed
even if no data was consumed.

The new code applies heuristics to fix this and reduce the number
of WINDOW_UPDATE frames that are sent. It includes six new options
to control that behavior: margin, max and threshold for both the
connection and stream windows. The margin is some extra space
added on top of the requested read size. The max is the maximum
window size at any given time. The threshold is a minimum window
size that must be reached before we even consider sending more
WINDOW_UPDATE frames. We also avoid sending WINDOW_UPDATE frames
when there is already enough space in the window, or when the
read size is 0.

Cowlib is set to master until a new tag is done.
2019-09-05 14:07:38 +02:00
..
handlers Data received after RST_STREAM counts toward window 2019-07-16 15:32:58 +02:00
static_handler_SUITE_data cowboy_static: Add support for files in EZ archives 2017-01-24 11:36:58 +01:00
ws_autobahn_SUITE_data Don't run long test suites by default 2018-11-20 13:23:59 +01:00
ws_SUITE_data Don't run long test suites by default 2018-11-20 13:23:59 +01:00
compress_SUITE.erl Fix compress buffering tests before OTP 20.1 2018-11-22 10:41:02 +01:00
cover.spec Use ct_run instead of rebar ct for running ct tests 2013-01-04 17:56:49 +01:00
cowboy_ct_hook.erl Welcome to 2017 2017-01-02 19:36:36 +01:00
cowboy_test.erl Move some tests out of the old HTTP test suite 2018-11-21 10:25:01 +01:00
examples_SUITE.erl Fix tests for most recent Gun 2018-06-26 10:32:33 +02:00
h2spec_SUITE.erl Don't error out when h2spec can't be compiled 2019-03-10 11:21:51 +01:00
http2_SUITE.erl Move some tests out of the old HTTP test suite 2018-11-21 10:25:01 +01:00
http_SUITE.erl Improve the reliability of some http_SUITE tests 2018-11-22 12:18:00 +01:00
loop_handler_SUITE.erl Remove a broken test from loop_handler_SUITE 2018-05-17 13:39:35 +02:00
metrics_SUITE.erl Handle error_response command in cowboy_metrics_h 2018-10-31 15:13:23 +01:00
misc_SUITE.erl Silence the expected set_env_missing error 2018-11-20 16:24:56 +01:00
plain_handler_SUITE.erl Move a old HTTP test cases to new plain_handler test suite 2018-11-21 14:29:36 +01:00
proxy_header_SUITE.erl Fix a test listener not being stopped 2018-10-31 09:25:19 +01:00
req_SUITE.erl Increase a test timeout to get rid of intermittent failures 2018-11-20 10:45:14 +01:00
rest_handler_SUITE.erl Move the final old HTTP suite tests and remove it 2018-11-22 00:12:18 +01:00
rfc6585_SUITE.erl Add a test suite for RFC6585 2018-11-03 20:57:51 +01:00
rfc7230_SUITE.erl Move one more old HTTP test case 2018-11-21 14:06:57 +01:00
rfc7231_SUITE.erl Move some more tests out of the old HTTP test suite 2018-11-21 13:28:20 +01:00
rfc7538_SUITE.erl Add a test suite for RFC7538; update Cowlib to 2.2.0 2018-03-05 16:48:56 +01:00
rfc7540_SUITE.erl Fix and optimize sending of WINDOW_UPDATE frames 2019-09-05 14:07:38 +02:00
rfc8297_SUITE.erl Add a test suite for RFC8297 2018-05-07 13:05:50 +02:00
rfc8441_SUITE.erl Fix and optimize sending of WINDOW_UPDATE frames 2019-09-05 14:07:38 +02:00
security_SUITE.erl Rename sec_SUITE to security_SUITE 2018-11-21 14:21:14 +01:00
static_handler_SUITE.erl Add a cowboy_static test with an uppercase filename/extension 2019-04-01 15:04:33 +02:00
stream_handler_SUITE.erl Silence expected errors from the stream_handler test suite 2018-11-19 12:37:39 +01:00
sys_SUITE.erl Silence expected warnings for messages from unknown processes 2018-11-20 16:25:11 +01:00
tracer_SUITE.erl Add nowarn_export_all to all test suites 2017-11-29 16:57:10 +01:00
ws_autobahn_SUITE.erl Don't run long test suites by default 2018-11-20 13:23:59 +01:00
ws_handler_SUITE.erl Add the set_options Websocket command 2018-11-16 13:49:00 +01:00
ws_SUITE.erl Don't run long test suites by default 2018-11-20 13:23:59 +01:00