Skip to content

http_server: add new API to configure the maximum buffer size #10448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

edsiper
Copy link
Member

@edsiper edsiper commented Jun 6, 2025

The HTTP Server interface, which supports HTTP/2 with fallback to HTTP/1, now includes an API to configure the maximum buffer size per client during data ingestion. If a client exceeds this limit, a 413 Payload Too Large error is returned.

This PR updates the following input plugins to use the new API:

  • in_elasticsearch
  • in_http
  • in_opentelemetry
  • in_prometheus_remote_write
  • in_splunk

Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.

edsiper added 6 commits June 6, 2025 16:26
Added a new function to enforce the maximum size for the buffer when
ingesting data:

  void flb_http_server_set_buffer_max_size(struct flb_http_server *server,
                                           size_t size);

Signed-off-by: Eduardo Silva <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant