Sets a long timeout for vm.import().
This commit is contained in:
parent
0254e71435
commit
92f24b5728
@ -738,6 +738,10 @@ exports.export = export_;
|
||||
#---------------------------------------------------------------------
|
||||
|
||||
handleVmImport = $coroutine (req, res, { xapi }) ->
|
||||
# Timeout seems to be broken in Node 4.
|
||||
# See https://github.com/nodejs/node/issues/3319
|
||||
req.setTimeout(43200000) # 12 hours
|
||||
|
||||
contentLength = req.headers['content-length']
|
||||
if !contentLength
|
||||
res.writeHead(411)
|
||||
|
Loading…
Reference in New Issue
Block a user