v1.0.140: larger chunks 20KB to reduce TLS overhead
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user