v2.0.5: задержка 3с между чанками — HTTP/2 streams

This commit is contained in:
2026-06-18 06:54:22 +04:00
parent 6c296f4f22
commit 4424d07a32
+2 -2
View File
@@ -60,7 +60,7 @@
<body>
<div class="topbar">
<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 class="content">
@@ -208,7 +208,7 @@
if (!data.ok) { reject(new Error(data.error)); return; }
done++;
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); });
}
sendChunk(0);