-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set db connection read and write timeout (#539)
Fix - when the database goes down, or the network dies, the open connections will hang 1. add library pq-timeouts and set read/write timeouts from the configuration 2. reduce notification clean interval to 15 minutes 3. fix tests - In current test implementation, the configuration for DB sslmode is passed as part of the DB URI string passed by settings.URI - "postgres://postgres:postgres@localhost:5432/postgres?sslmode=disable". Because of it, I can't just simply concatenate the read/write new parameters like done in previous commits. I need to take into account that the URI string might contain already URL parameters.
- Loading branch information
Showing
5 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters