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")
|
||||
return
|
||||
|
||||
# Режем на чанки (Lucee сбрасывает HTTP/2 стрим — новый клиент на каждый)
|
||||
CHUNK = 12000
|
||||
# Режем на чанки (новый HTTP/2 connection на каждый — Lucee сбрасывает стрим)
|
||||
CHUNK = 20000
|
||||
upload_id = str(uuid.uuid4())
|
||||
raw = file_data
|
||||
total = (len(raw) + CHUNK - 1) // CHUNK
|
||||
|
||||
Reference in New Issue
Block a user