mirror of
https://github.com/Moepchi/webspeak3.git
synced 2026-12-01 00:42:49 +08:00
A legacy ftupload line had no size check, and every upload body stayed in memory until the server answered and the transfer finished, which a client-chosen ftlimit can stretch to days. One client could park any amount of memory in its connector (measured: +8 MiB per 8 MiB upload, never released). Legacy uploads now respect MAX_UPLOAD_BYTES, and all held upload bodies share a budget of 2x MAX_UPLOAD_BYTES per connector, released when an upload finishes or fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU