Fix #905, intermittent empty replies
This commit is contained in:
committed by
Steve Chávez
parent
56bd5d5f91
commit
93f10adb3c
@@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- #1129, Fix view embedding when table is capitalized - @steve-chavez
|
- #1129, Fix view embedding when table is capitalized - @steve-chavez
|
||||||
- #1149, OpenAPI: Change `GET` response type to array - @laughedelic
|
- #1149, OpenAPI: Change `GET` response type to array - @laughedelic
|
||||||
- #1152, Fix RPC failing when having arguments with reserved or uppercase keywords - @mdr1384
|
- #1152, Fix RPC failing when having arguments with reserved or uppercase keywords - @mdr1384
|
||||||
|
- #905, Fix intermittent empty replies - @steve-chavez
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|||||||
+2
-4
@@ -33,8 +33,7 @@ import qualified Hasql.Pool as P
|
|||||||
import qualified Hasql.Session as H
|
import qualified Hasql.Session as H
|
||||||
import Network.Wai.Handler.Warp (defaultSettings,
|
import Network.Wai.Handler.Warp (defaultSettings,
|
||||||
runSettings, setHost,
|
runSettings, setHost,
|
||||||
setPort, setServerName,
|
setPort, setServerName)
|
||||||
setTimeout)
|
|
||||||
import System.IO (BufferMode (..),
|
import System.IO (BufferMode (..),
|
||||||
hSetBuffering)
|
hSetBuffering)
|
||||||
|
|
||||||
@@ -152,8 +151,7 @@ main = do
|
|||||||
appSettings =
|
appSettings =
|
||||||
setHost ((fromString . toS) host) -- Warp settings
|
setHost ((fromString . toS) host) -- Warp settings
|
||||||
. setPort port
|
. setPort port
|
||||||
. setServerName (toS $ "postgrest/" <> prettyVersion)
|
. setServerName (toS $ "postgrest/" <> prettyVersion) $
|
||||||
. setTimeout 3600 $
|
|
||||||
defaultSettings
|
defaultSettings
|
||||||
|
|
||||||
-- Checks that the provided proxy uri is formated correctly
|
-- Checks that the provided proxy uri is formated correctly
|
||||||
|
|||||||
Reference in New Issue
Block a user