0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/test
Robert J. Macomber f74b69c3ed
Optionally reset the idle timeout when sending data
A new option reset_idle_timeout_on_send has been added.
When set to 'true', the idle timeout is reset not only
when data is received, but also when data is sent.

This allows sending large responses without having to
worry about timeouts triggering.

The default is currently unchanged but might change in
a future release.

LH: Greatly reworked the implementation so that the
    timeout gets reset on almost all socket writes.
	This essentially completely supersets the original
	work. Tests are mostly the same although I
	refactored a bit to avoid test code duplication.

This commit also changes HTTP/2 behavior a little when
data is received: Cowboy will not attempt to update the
window before running stream handler commands to avoid
sending WINDOW_UPDATE frames twice. Now it has some
small heuristic to ensure they can only be sent once
at most.
2023-12-21 14:03:07 +01:00
..
handlers Optionally reset the idle timeout when sending data 2023-12-21 14:03:07 +01: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 Document the commands based Websocket interface 2019-10-06 16:51:27 +02:00
compress_SUITE.erl Ignore malformed accept-encoding headers in cowboy_compress_h 2019-12-31 13:48:05 +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 Fix shutdown for HTTP/1.1 pipeline 2023-12-18 15:39:39 +01:00
examples_SUITE.erl Add UTF-8 support to example file_server 2023-12-07 15:31:11 +01:00
h2spec_SUITE.erl Fix h2spec "invalid preface sequence" test 2020-04-01 18:02:59 +02:00
http2_SUITE.erl Optionally reset the idle timeout when sending data 2023-12-21 14:03:07 +01:00
http_SUITE.erl Optionally reset the idle timeout when sending data 2023-12-21 14:03:07 +01:00
loop_handler_SUITE.erl Increase loop_handler_timeout timeouts 2023-12-15 16:22:06 +01:00
metrics_SUITE.erl Fix OTP-26+ warnings in test suites 2023-03-30 10:35:08 +02: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 TLS tests for OTP-26+ 2023-03-30 15:38:29 +02:00
req_SUITE.erl Reduce CT logs size in a couple test cases 2023-12-01 10:45:41 +01:00
rest_handler_SUITE.erl Fix typos in documentation 2023-12-06 18:46:56 +01:00
rfc6585_SUITE.erl Add a test suite for RFC6585 2018-11-03 20:57:51 +01:00
rfc7230_SUITE.erl Fix shutdown for HTTP/1.1 pipeline 2023-12-18 15:39:39 +01:00
rfc7231_SUITE.erl Explicitly close the socket in some tests for speed ups 2023-12-18 18:17:09 +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 Shave off a few more seconds from rfc7540_SUITE 2023-12-19 11:09:54 +01: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 Add 'max_cancel_stream_rate' config for the rapid reset attack 2023-12-06 12:41:58 +01:00
static_handler_SUITE.erl Fix static_handler suite code path 2023-12-15 10:35:37 +01:00
stream_handler_SUITE.erl Explicitly close the socket in some tests for speed ups 2023-12-18 18:17:09 +01:00
sys_SUITE.erl Add timeout to cowboy_loop 2023-12-15 15:37:34 +01:00
tracer_SUITE.erl Use init_per_suite instead of all/0 for init in tracer_SUITE 2023-12-01 15:46:23 +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 Use gun:ws_send/3 in tests 2020-11-23 11:02:01 +01:00
ws_SUITE.erl Disable ws_SUITE:unlimited_connections on Windows 2020-04-02 17:36:03 +02:00