mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Stanza integration: Increase timeouts when sending covers/book files to one hour
This commit is contained in:
parent
aee3d6febb
commit
e8136f659e
@ -20,7 +20,7 @@ class VMInstaller(Command):
|
|||||||
VM_NAME = None
|
VM_NAME = None
|
||||||
FREEZE_COMMAND = None
|
FREEZE_COMMAND = None
|
||||||
FREEZE_TEMPLATE = 'python setup.py {freeze_command}'
|
FREEZE_TEMPLATE = 'python setup.py {freeze_command}'
|
||||||
SHUTDOWN_CMD = ['sudo', 'shutdown', '-h', 'now']
|
SHUTDOWN_CMD = ['sudo', 'poweroff']
|
||||||
IS_64_BIT = False
|
IS_64_BIT = False
|
||||||
|
|
||||||
BUILD_CMD = 'ssh -t %s bash build-calibre'
|
BUILD_CMD = 'ssh -t %s bash build-calibre'
|
||||||
|
@ -25,3 +25,4 @@ class OSX32(VMInstaller):
|
|||||||
VM = '/vmware/bin/%s'%VM_NAME
|
VM = '/vmware/bin/%s'%VM_NAME
|
||||||
FREEZE_COMMAND = 'osx32_freeze'
|
FREEZE_COMMAND = 'osx32_freeze'
|
||||||
BUILD_PREFIX = VMInstaller.BUILD_PREFIX + ['source ~/.profile']
|
BUILD_PREFIX = VMInstaller.BUILD_PREFIX + ['source ~/.profile']
|
||||||
|
SHUTDOWN_CMD = ['sudo', 'halt']
|
||||||
|
@ -26,6 +26,7 @@ class Win32(VMInstaller):
|
|||||||
VM_NAME = 'xp_build'
|
VM_NAME = 'xp_build'
|
||||||
VM = '/vmware/bin/%s'%VM_NAME
|
VM = '/vmware/bin/%s'%VM_NAME
|
||||||
FREEZE_COMMAND = 'win32_freeze'
|
FREEZE_COMMAND = 'win32_freeze'
|
||||||
|
SHUTDOWN_CMD = ['shutdown', '-s']
|
||||||
|
|
||||||
def download_installer(self):
|
def download_installer(self):
|
||||||
installer = self.installer()
|
installer = self.installer()
|
||||||
|
@ -271,6 +271,7 @@ class LibraryServer(object):
|
|||||||
if cover is None:
|
if cover is None:
|
||||||
cover = self.default_cover
|
cover = self.default_cover
|
||||||
cherrypy.response.headers['Content-Type'] = 'image/jpeg'
|
cherrypy.response.headers['Content-Type'] = 'image/jpeg'
|
||||||
|
cherrypy.response.timeout = 3600
|
||||||
path = getattr(cover, 'name', False)
|
path = getattr(cover, 'name', False)
|
||||||
updated = datetime.utcfromtimestamp(os.stat(path).st_mtime) if path and \
|
updated = datetime.utcfromtimestamp(os.stat(path).st_mtime) if path and \
|
||||||
os.access(path, os.R_OK) else self.build_time
|
os.access(path, os.R_OK) else self.build_time
|
||||||
@ -316,6 +317,7 @@ class LibraryServer(object):
|
|||||||
if mt is None:
|
if mt is None:
|
||||||
mt = 'application/octet-stream'
|
mt = 'application/octet-stream'
|
||||||
cherrypy.response.headers['Content-Type'] = mt
|
cherrypy.response.headers['Content-Type'] = mt
|
||||||
|
cherrypy.response.timeout = 3600
|
||||||
path = getattr(fmt, 'name', None)
|
path = getattr(fmt, 'name', None)
|
||||||
if path and os.path.exists(path):
|
if path and os.path.exists(path):
|
||||||
updated = datetime.utcfromtimestamp(os.stat(path).st_mtime)
|
updated = datetime.utcfromtimestamp(os.stat(path).st_mtime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user