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 ...@@ -31,6 +31,7 @@ import Network.Wai.Handler.Warp
( Port ( Port
, defaultSettings , defaultSettings
, setPort , setPort
, setTimeout
, setOnException , setOnException
, setOnExceptionResponse , setOnExceptionResponse
, runSettings , runSettings
...@@ -245,6 +246,7 @@ getRunner endpoint = ...@@ -245,6 +246,7 @@ getRunner endpoint =
onExceptionResponse = (responseLBS status500 []) . LBS.fromString . ("exception: " ++) . show onExceptionResponse = (responseLBS status500 []) . LBS.fromString . ("exception: " ++) . show
settings = settings =
setPort (getPortNumber endpoint) . setPort (getPortNumber endpoint) .
setTimeout 300 .
setOnException onException . setOnException onException .
setOnExceptionResponse onExceptionResponse $ setOnExceptionResponse onExceptionResponse $
defaultSettings 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