Skip to content

Commit

Permalink
Use a larger stream window
Browse files Browse the repository at this point in the history
  • Loading branch information
FinleyMcIlwaine committed Oct 15, 2024
1 parent 8dce5c8 commit d1dfece
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Network/GRPC/Common/HTTP2Settings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,17 @@ defaultHTTP2Settings :: HTTP2Settings
defaultHTTP2Settings = HTTP2Settings {
http2MaxConcurrentStreams = defMaxConcurrentStreams
, http2StreamWindowSize = defInitialStreamWindowSize
, http2ConnectionWindowSize = defMaxConcurrentStreams * defInitialStreamWindowSize
, http2ConnectionWindowSize = defInitialConnectionWindowSize
, http2TcpNoDelay = True
, http2OverridePingRateLimit = Just 100
, http2OverrideEmptyFrameRateLimit = Nothing
, http2OverrideSettingsRateLimit = Nothing
, http2OverrideRstRateLimit = Nothing
}
where
defMaxConcurrentStreams = 128
defInitialStreamWindowSize = 1024 * 64
defMaxConcurrentStreams = 128
defInitialStreamWindowSize = 256 * 1024 -- 256KiB
defInitialConnectionWindowSize = 2 * 1024 * 1024 -- 2MiB

instance Default HTTP2Settings where
def = defaultHTTP2Settings

0 comments on commit d1dfece

Please sign in to comment.