Stanza integration: Increase timeouts when sending covers/book files to one hour

This commit is contained in:
Kovid Goyal 2009-09-11 10:41:39 -06:00
parent aee3d6febb
commit e8136f659e
4 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,7 @@ class VMInstaller(Command):
VM_NAME = None
FREEZE_COMMAND = None
FREEZE_TEMPLATE = 'python setup.py {freeze_command}'
SHUTDOWN_CMD = ['sudo', 'shutdown', '-h', 'now']
SHUTDOWN_CMD = ['sudo', 'poweroff']
IS_64_BIT = False
BUILD_CMD = 'ssh -t %s bash build-calibre'

View File

@ -25,3 +25,4 @@ class OSX32(VMInstaller):
VM = '/vmware/bin/%s'%VM_NAME
FREEZE_COMMAND = 'osx32_freeze'
BUILD_PREFIX = VMInstaller.BUILD_PREFIX + ['source ~/.profile']
SHUTDOWN_CMD = ['sudo', 'halt']

View File

@ -26,6 +26,7 @@ class Win32(VMInstaller):
VM_NAME = 'xp_build'
VM = '/vmware/bin/%s'%VM_NAME
FREEZE_COMMAND = 'win32_freeze'
SHUTDOWN_CMD = ['shutdown', '-s']
def download_installer(self):
installer = self.installer()

View File

@ -271,6 +271,7 @@ class LibraryServer(object):
if cover is None:
cover = self.default_cover
cherrypy.response.headers['Content-Type'] = 'image/jpeg'
cherrypy.response.timeout = 3600
path = getattr(cover, 'name', False)
updated = datetime.utcfromtimestamp(os.stat(path).st_mtime) if path and \
os.access(path, os.R_OK) else self.build_time
@ -316,6 +317,7 @@ class LibraryServer(object):
if mt is None:
mt = 'application/octet-stream'
cherrypy.response.headers['Content-Type'] = mt
cherrypy.response.timeout = 3600
path = getattr(fmt, 'name', None)
if path and os.path.exists(path):
updated = datetime.utcfromtimestamp(os.stat(path).st_mtime)