Skip to content

Commit

Permalink
removing unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Jun 19, 2024
1 parent caf08c1 commit 8696560
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions Network/HTTP2/H2/Context.hs
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,6 @@ newContext rinfo Config{..} cacheSiz connRxWS settings =
| confBufferSize >= dlim = dlim
| otherwise = confBufferSize

makeMySettingsList :: Config -> Int -> WindowSize -> [(SettingsKey, Int)]
makeMySettingsList Config{..} maxConc winSiz = myInitialAlist
where
-- confBufferSize is the size of the write buffer.
-- But we assume that the size of the read buffer is the same size.
-- So, the size is announced to via SETTINGS_MAX_FRAME_SIZE.
len = confBufferSize - frameHeaderLength
payloadLen = max defaultPayloadLength len
myInitialAlist =
[ (SettingsMaxFrameSize, payloadLen)
, (SettingsMaxConcurrentStreams, maxConc)
, (SettingsInitialWindowSize, winSiz)
]

----------------------------------------------------------------

isClient :: Context -> Bool
Expand Down

0 comments on commit 8696560

Please sign in to comment.