From a0cfddffdf28b1571f6c01f531d4fd9586088fc3 Mon Sep 17 00:00:00 2001 From: Ashesh Vashi Date: Thu, 22 Oct 2015 11:49:53 +0530 Subject: [PATCH] Adding maximum session idle time in the config.py file --- web/config.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/web/config.py b/web/config.py index cb5d7a99a..968bc3d51 100644 --- a/web/config.py +++ b/web/config.py @@ -84,8 +84,6 @@ LOG_FILE = 'pgadmin4.log' # Server settings ########################################################################## -PG_DEFAULT_DRIVER = 'psycopg2' - # The server mode determines whether or not we're running on a web server # requiring user authentication, or desktop mode which uses an automatic # default login. @@ -122,6 +120,18 @@ SECURITY_PASSWORD_HASH = 'pbkdf2_sha512' # Should HTML be minified on the fly when not in debug mode? MINIFY_HTML = True + +########################################################################## +# Server Connection Driver Settings +########################################################################## + +# The default driver used for making connection with PostgreSQL +PG_DEFAULT_DRIVER = 'psycopg2' + +# Maximum allowed idle time in minutes before which releasing the connection +# for the particular session. (in minutes) +MAX_SESSION_IDLE_TIME = 60 + ########################################################################## # User account and settings storage ##########################################################################