Increasing default socket timeout in attempt to combat occasional save_note() timeouts.
This commit is contained in:
parent
7d8607187d
commit
7cc155ac64
|
@ -1,12 +1,17 @@
|
||||||
#!/usr/bin/python2.4
|
#!/usr/bin/python2.4
|
||||||
|
|
||||||
|
import socket
|
||||||
import cherrypy
|
import cherrypy
|
||||||
from controller.Database import Database
|
from controller.Database import Database
|
||||||
from controller.Root import Root
|
from controller.Root import Root
|
||||||
from config import Common
|
from config import Common
|
||||||
|
|
||||||
|
|
||||||
|
SOCKET_TIMEOUT_SECONDS = 60
|
||||||
|
|
||||||
|
|
||||||
def main( args ):
|
def main( args ):
|
||||||
|
socket.setdefaulttimeout( SOCKET_TIMEOUT_SECONDS )
|
||||||
database = Database()
|
database = Database()
|
||||||
|
|
||||||
cherrypy.config.update( Common.settings )
|
cherrypy.config.update( Common.settings )
|
||||||
|
|
Reference in New Issue