#! /usr/bin/python3
# -*- coding: utf8 -*-
# The global setting file for nv-middlebox.

__author__ = "Sugesh Chandran"
__copyright__ = "Copyright (C) The neoview team."
__license__ = "GNU Lesser General Public License"
__version__ = "1.0"

import logging

#nv-middle-box common settings
NV_MID_BOX_APP_NAME = "nv-middle-box"
NV_MID_BOX_RUN_DIR = "/usr/local/var/run/nv-middlebox"
# Middlebox PID for the daemon.
NV_MID_BOX_PID = "/usr/local/var/run/nv-middlebox/nv_middlebox.pid"
#Middle box camera streaming file Directory
NV_MID_BOX_CAM_STREAM_DIR = "/tmp/camera"

# The size of file generated by camera thread to be valid.
# Any file less than doesnt copy to the webserver
# Should be specified in MB.
NV_CAM_VALID_FILE_SIZE_MB = 4   # 4MB

# Camera connection timeout.
# The timeout period to consider a camera is dead. camera will be considered as
# disconnected when filesize < NV_CAM_VALID_FILE_SIZE_MB for a period of
# NV_CAM_CONN_TIMEOUT.
NV_CAM_CONN_TIMEOUT = 180  # 180 sec/3 min

# nv-middle-box logging Settings
NV_DEFAULT_LOG_LEVEL = logging.DEBUG
#NV_LOG_FILE = "/usr/local/var/log/nv-middlebox/nv_middlebox.log"
NV_LOG_FILE = "/tmp/nv_middlebox.log"
NV_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(funcName)s - %(message)s"


#nv-middlebox db settings
NVDB_SQLALCHEMY_DB = 'sqlite:///:memory:' #Inmemory DB

#NVDB_SQLALCHEMY_DB = 'sqlite:///nvdb.db' #Relative path db
#NVDB_SQLALCHEMY_DB = 'sqlite:////tmp/nvdb.db' #absolute path db

#nv-middlebox database logging settings.
NVDB_DEFAULT_LOG_LEVEL = logging.DEBUG
#NVDB_LOG_FILE = "/usr/local/var/log/nv-middlebox/nvdb.log"
NVDB_LOG_FILE = "/tmp/nvdb.log"
NVDB_LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"

@@ -942,16 +942,62 @@
 IMEOUT.%0A
+# The minimum timeout woule be atleast 5 min.%0A
 NV_CAM_C
@@ -1014,24 +1014,24 @@
 T = 
-18
+30
 0  # 
-18
+30
 0 sec/
-3
+5
  min

Update the timeout for disconnect from 3 to 5 min.