Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions http-core/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,11 @@ pekko.http {

frame-type-throttle {
# Configure the throttle for non-data frame types (https://github.com/apache/pekko-http/issues/332).
# The supported frame-types for throttlng are:
# The supported frame-types for throttling are:
# reset, headers, continuation, go-away, priority, ping, push-promise, window-update
# If you are concerned about CVE-2023-44487, you could set: pekko.http.server.http2.frame-type-throttle.frame-types = ["reset"]
frame-types = []
# By default, RST_STREAM frames are throttled to mitigate HTTP/2 Rapid Reset attacks (CVE-2023-44487).
# Set to [] to disable throttling.
frame-types = ["reset"]
cost = 100
burst = 100
# interval must be a positive duration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ import pekko.http.impl.engine.http2.framing.FrameRenderer
import pekko.util.ByteStringBuilder

/**
* This tests the http2 server throttle support for rapid resets is disabled by default.
* This tests the http2 server throttle support for rapid resets when explicitly disabled.
*/
class Http2ServerDisableFrameTypeThrottleSpec extends Http2SpecWithMaterializer("""
pekko.http.server.http2.log-frames = on
pekko.http.server.http2.frame-type-throttle.frame-types = []
""") {
override def failOnSevereMessages: Boolean = true

Expand Down