v1.0.140: larger chunks 20KB to reduce TLS overhead

This commit is contained in:
2026-06-23 09:16:28 +04:00
parent d493d77017
commit 6b984d5a13
+2 -2
View File
@@ -310,8 +310,8 @@ class Handler(BaseHTTPRequestHandler):
self._send_error_cors(400, "no file in request") self._send_error_cors(400, "no file in request")
return return
# Режем на чанки (Lucee сбрасывает HTTP/2 стрим — новый клиент на каждый) # Режем на чанки (новый HTTP/2 connection на каждый — Lucee сбрасывает стрим)
CHUNK = 12000 CHUNK = 20000
upload_id = str(uuid.uuid4()) upload_id = str(uuid.uuid4())
raw = file_data raw = file_data
total = (len(raw) + CHUNK - 1) // CHUNK total = (len(raw) + CHUNK - 1) // CHUNK