Summary:
Add configurable connection and body-size limits to MySQL Router’s built-in HTTP server.
Problem:
The http_server plugin currently does not enforce maximum HTTP connections, request body size, or response body size. This can lead to resource exhaustion and unpredictable behavior under load.
Proposed approach:
Introduce configurable limits for:
• max_http_connections
• max_request_body_size
• max_response_body_size
Also add an internal runtime override interface and secure defaults when values are not configured.
Expected benefits:
• More predictable Router behavior under load
• Protection against resource exhaustion
• Safer HTTP server defaults
• Better operational control for internal components
Summary:
Add configurable connection and body-size limits to MySQL Router’s built-in HTTP server.
Problem:
The http_server plugin currently does not enforce maximum HTTP connections, request body size, or response body size. This can lead to resource exhaustion and unpredictable behavior under load.
Proposed approach:
Introduce configurable limits for:
• max_http_connections
• max_request_body_size
• max_response_body_size
Also add an internal runtime override interface and secure defaults when values are not configured.
Expected benefits:
• More predictable Router behavior under load
• Protection against resource exhaustion
• Safer HTTP server defaults
• Better operational control for internal components