Limit API request body size (#4757)
Bound the size of HTTP request bodies on the main API listener so large messages cannot exhaust memory. Configurable via limit.max_api_request_body_size (defaults to 10 MiB, 0 disables). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
cc6551d617
commit
f72254ba6b
@@ -385,3 +385,7 @@ keys:
|
||||
# signal_message_size_limit: 2097152
|
||||
# # same as above, but for agent worker WebSocket connections. defaults to 2 MiB, 0 for no limit
|
||||
# agent_signal_message_size_limit: 2097152
|
||||
# # max size (bytes) of an HTTP request body on the main API listener (Twirp room/egress/ingress/SIP
|
||||
# # routes). requests larger than this are rejected before their body is decoded, so large messages
|
||||
# # cannot exhaust memory. defaults to 10 MiB, 0 for no limit
|
||||
# max_api_request_body_size: 10485760
|
||||
|
||||
Reference in New Issue
Block a user