From 7cc155ac645c9c1d34a37022be8fa7b709cab6bf Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 25 Mar 2008 21:37:49 +0000 Subject: [PATCH] Increasing default socket timeout in attempt to combat occasional save_note() timeouts. --- luminotes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/luminotes.py b/luminotes.py index e336441..2dd1402 100644 --- a/luminotes.py +++ b/luminotes.py @@ -1,12 +1,17 @@ #!/usr/bin/python2.4 +import socket import cherrypy from controller.Database import Database from controller.Root import Root from config import Common +SOCKET_TIMEOUT_SECONDS = 60 + + def main( args ): + socket.setdefaulttimeout( SOCKET_TIMEOUT_SECONDS ) database = Database() cherrypy.config.update( Common.settings )