Skip to content

Commit

Permalink
Slightly tweak server parameters
Browse files Browse the repository at this point in the history
  - Increase network timeout from 30 -> 120 seconds
  - Ensure request body is always flushed to client, even if not fully consumed.
  • Loading branch information
KtorZ committed Jul 21, 2023
1 parent 1166b14 commit a33fcae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Kupo/App/Http.hs
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ httpServer tr withDatabase forceRollback fetchBlock patternsVar readHealth host
& Warp.setPort port
& Warp.setHost (fromString host)
& Warp.setServerName "kupo"
& Warp.setTimeout 120
& Warp.setMaximumBodyFlush Nothing
& Warp.setBeforeMainLoop (logWith tr HttpServerListening{host,port})

withDatabaseWrapped send connectionType action = do
Expand Down

0 comments on commit a33fcae

Please sign in to comment.