mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-21 12:05:00 +00:00
Set a 5 min timeout to delta requests
This commit is contained in:
parent
88f0e4e229
commit
582e3322ec
@ -48,8 +48,8 @@ exports.rsyncImageWithProgress = (imgDest, onProgress) ->
|
||||
findSimilarImage(imgDest)
|
||||
.spread (imgSrc) ->
|
||||
rsyncDiff = new Promise (resolve, reject) ->
|
||||
console.log("#{config.deltaHost}/api/v1/delta?src=#{imgSrc}&dest=#{imgDest}", timeout: 0)
|
||||
progress request.get("#{config.deltaHost}/api/v1/delta?src=#{imgSrc}&dest=#{imgDest}", timeout: 0)
|
||||
console.log("#{config.deltaHost}/api/v1/delta?src=#{imgSrc}&dest=#{imgDest}", timeout: 5 * 60 * 1000)
|
||||
progress request.get("#{config.deltaHost}/api/v1/delta?src=#{imgSrc}&dest=#{imgDest}", timeout: 5 * 60 * 1000)
|
||||
.on 'progress', onProgress
|
||||
.on 'end', ->
|
||||
onProgress(percent: 100)
|
||||
|
Loading…
Reference in New Issue
Block a user