fix: Increase the db-pool-timeout to 1 hour

This commit is contained in:
steve-chavez
2022-06-15 13:19:44 -05:00
committed by Steve Chavez
parent 0c5d2e553e
commit df7d71db32
8 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ exampleConfigFile =
|db-pool = 10
|
|## Time to live, in seconds, for an idle database pool connection
|db-pool-timeout = 10
|db-pool-timeout = 3600
|
|## Stored proc to exec immediately after auth
|# db-pre-request = "stored_proc_name"
+1 -1
View File
@@ -214,7 +214,7 @@ parser optPath env dbSettings =
<*> optWithAlias (optInt "db-max-rows")
(optInt "max-rows")
<*> (fromMaybe 10 <$> optInt "db-pool")
<*> (fromIntegral . fromMaybe 10 <$> optInt "db-pool-timeout")
<*> (fromIntegral . fromMaybe 3600 <$> optInt "db-pool-timeout")
<*> (fmap toQi <$> optWithAlias (optString "db-pre-request")
(optString "pre-request"))
<*> (fromMaybe True <$> optBool "db-prepared-statements")