From 80921ad15fac05715ede7063d57585d4e7049f99 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Wed, 19 Jun 2024 15:48:52 +0900 Subject: [PATCH] Using proper initial settings for peer. --- Network/HTTP2/H2/Context.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Network/HTTP2/H2/Context.hs b/Network/HTTP2/H2/Context.hs index 3c5317a3..c0c289dc 100644 --- a/Network/HTTP2/H2/Context.hs +++ b/Network/HTTP2/H2/Context.hs @@ -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