mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-19 12:15:31 +02:00
Merge pull request #1382 from ShaneMcGovernIE/chore/postlog-body-limit
Raise postLog body ceiling to 512 KiB
This commit is contained in:
+8
-3
@@ -32,9 +32,14 @@ local Net = {}
|
|||||||
Net.MAX_INFLIGHT = 4
|
Net.MAX_INFLIGHT = 4
|
||||||
-- Clamp on the caller's timeout, so a mod cannot pin a worker indefinitely.
|
-- Clamp on the caller's timeout, so a mod cannot pin a worker indefinitely.
|
||||||
Net.MAX_SECONDS = 30
|
Net.MAX_SECONDS = 30
|
||||||
-- A log body ceiling. Debug logs are kilobytes, and a server operator has no
|
-- A log body ceiling. A diagnostic ring (boot evidence + recent lines +
|
||||||
-- reason to accept a mod uploading arbitrary megabytes to its endpoint.
|
-- status) routinely exceeds 64 KiB on a long session, so the ceiling is
|
||||||
Net.MAX_BODY = 65536
|
-- 512 KiB: generous for real support logs, still far under the 5 MiB the
|
||||||
|
-- reference loghook endpoint accepts, and small enough that a misbehaving
|
||||||
|
-- mod cannot upload arbitrary megabytes. The body is staged to a file and
|
||||||
|
-- streamed by the transport, so the ceiling is a budget, not a memory
|
||||||
|
-- spike; callers that stay under it never notice it.
|
||||||
|
Net.MAX_BODY = 512 * 1024
|
||||||
|
|
||||||
local function fetch()
|
local function fetch()
|
||||||
return require("src.net.Fetch")
|
return require("src.net.Fetch")
|
||||||
|
|||||||
Reference in New Issue
Block a user