Skip to content

Commit

Permalink
Using proper initial settings for peer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jun 19, 2024
1 parent 8696560 commit 80921ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/HTTP2/H2/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ newContext rinfo Config{..} cacheSiz connRxWS settings =
-- Peer: The spec defines max concurrency is infinite unless
-- SETTINGS_MAX_CONCURRENT_STREAMS is exchanged.
-- But it is vulnerable, so we set the limitations.
<*> newIORef settings
<*> newIORef baseSettings{maxConcurrentStreams = Just defaultMaxStreams}
<*> newTVarIO emptyOddStreamTable
<*> newTVarIO (emptyEvenStreamTable cacheSiz)
<*> newIORef Nothing
Expand Down

0 comments on commit 80921ad

Please sign in to comment.