From 0f8b6a9fda93df96279612f826061d1a1caeacc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20S=C3=B6derqvist?= Date: Tue, 31 Oct 2023 12:07:52 +0100 Subject: [PATCH] Change default to match docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Björn Svensson --- src/cowboy_http2.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl index bda38c39..32cbaa07 100644 --- a/src/cowboy_http2.erl +++ b/src/cowboy_http2.erl @@ -197,7 +197,7 @@ init_reset_rate_limiting(State=#state{opts=Opts}, CurrentTime) -> }. init_cancel_rate_limiting(State=#state{opts=Opts}, CurrentTime) -> - {CancelRateNum, CancelRatePeriod} = maps:get(max_cancel_stream_rate, Opts, {100, 10000}), + {CancelRateNum, CancelRatePeriod} = maps:get(max_cancel_stream_rate, Opts, {500, 10000}), State#state{ cancel_rate_num=CancelRateNum, cancel_rate_time=add_period(CurrentTime, CancelRatePeriod) }.