aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-03-29 13:51:21 +0200
committerLoïc Hoguin <[email protected]>2020-03-29 13:51:21 +0200
commit6ad842a742915066d319f307a0f60cd8df15598b (patch)
treec938e1f0ce21b1dfc1c3cf08852efdab7b27304c /src
parentf8e94c3315dab3ae1d6dbb4e6785034f79eb04fb (diff)
downloadcowboy-6ad842a742915066d319f307a0f60cd8df15598b.tar.gz
cowboy-6ad842a742915066d319f307a0f60cd8df15598b.tar.bz2
cowboy-6ad842a742915066d319f307a0f60cd8df15598b.zip
Increase the default max_received_frame_rate
Allow 10000 frames every 10 seconds instead of just 1000, as the limit was too quickly reached in some deployments.
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_http2.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index 03ec9f8..5224737 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -171,7 +171,7 @@ init(Parent, Ref, Socket, Transport, ProxyHeader, Opts, Peer, Sock, Cert, Buffer
end.
init_rate_limiting(State=#state{opts=Opts}) ->
- {FrameRateNum, FrameRatePeriod} = maps:get(max_received_frame_rate, Opts, {1000, 10000}),
+ {FrameRateNum, FrameRatePeriod} = maps:get(max_received_frame_rate, Opts, {10000, 10000}),
{ResetRateNum, ResetRatePeriod} = maps:get(max_reset_stream_rate, Opts, {10, 10000}),
CurrentTime = erlang:monotonic_time(millisecond),
State#state{