fix: send DONE as text frame, server responds before close
Deploy loadtest / validate (push) Waiting to run

This commit is contained in:
2026-07-11 00:20:59 +04:00
parent a2cd7bb88f
commit bd38a68543
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -29,6 +29,8 @@ def ws_upload(ws):
chunk = ws.receive()
if chunk is None:
break
if isinstance(chunk, str) and chunk == 'DONE':
break
total += len(chunk)
elapsed = round((time.time() - t0) * 1000)
ws.send(json.dumps({'ok': True, 'bytes': total, 'elapsed_ms': elapsed}))