fix: close WS on client after last chunk, no DONE needed, bump 1.0.13→1.0.14
Deploy loadtest / validate (push) Waiting to run

This commit is contained in:
2026-07-11 00:20:13 +04:00
parent ada363b9ba
commit a2cd7bb88f
2 changed files with 20 additions and 22 deletions
+1 -3
View File
@@ -7,7 +7,7 @@ from flask_sock import Sock
app = Flask(__name__)
sock = Sock(app)
VERSION = '1.0.13'
VERSION = '1.0.14'
@app.route('/')
@@ -29,8 +29,6 @@ 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}))