Skip to content
Snippets Groups Projects
Unverified Commit a79f7264 authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Raise the Warp timeout to try to allow large responses to be sent

parent 7091c6d3
No related branches found
No related tags found
1 merge request!44Support an increase in the ZKAP batch size to several hundred thousand
......@@ -31,6 +31,7 @@ import Network.Wai.Handler.Warp
( Port
, defaultSettings
, setPort
, setTimeout
, setOnException
, setOnExceptionResponse
, runSettings
......@@ -245,6 +246,7 @@ getRunner endpoint =
onExceptionResponse = (responseLBS status500 []) . LBS.fromString . ("exception: " ++) . show
settings =
setPort (getPortNumber endpoint) .
setTimeout 300 .
setOnException onException .
setOnExceptionResponse onExceptionResponse $
defaultSettings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment