v2.0.5: задержка 3с между чанками — HTTP/2 streams
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<img src="{{ url_for('static', filename='nubes-logo.svg') }}" alt="Nubes">
|
<img src="{{ url_for('static', filename='nubes-logo.svg') }}" alt="Nubes">
|
||||||
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v2.0.4</span></span>
|
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v2.0.5</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -208,7 +208,7 @@
|
|||||||
if (!data.ok) { reject(new Error(data.error)); return; }
|
if (!data.ok) { reject(new Error(data.error)); return; }
|
||||||
done++;
|
done++;
|
||||||
if (onProgress) onProgress(Math.round(done / totalChunks * 100));
|
if (onProgress) onProgress(Math.round(done / totalChunks * 100));
|
||||||
setTimeout(function() { sendChunk(i + 1); }, 500); // дать HTTP/2 стримам закрыться
|
setTimeout(function() { sendChunk(i + 1); }, 3000); // дать HTTP/2 стримам закрыться
|
||||||
}).catch(function(e) { reject(e); });
|
}).catch(function(e) { reject(e); });
|
||||||
}
|
}
|
||||||
sendChunk(0);
|
sendChunk(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user