v2.0.7: задержка 3с обратно — 2.5с мало для HTTP/2
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.6</span></span>
|
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v2.0.7</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({pct: Math.round(done / totalChunks * 100), done: done, total: totalChunks});
|
if (onProgress) onProgress({pct: Math.round(done / totalChunks * 100), done: done, total: totalChunks});
|
||||||
setTimeout(function() { sendChunk(i + 1); }, 2500); // дать 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