fluent-bit icon indicating copy to clipboard operation
fluent-bit copied to clipboard

upstream: prioritize the reuse of connections instead of establishing new ones

Open lecaros opened this issue 4 months ago • 0 comments

Currently, we're prioritizing the creation of new connections if there's no limit on them or if we are within the limits. This commit prioritizes the reuse of connections and only creates one if there are no available ones and we're within the limits (if any). This should address #10342 This also fixes a regression introduced in #10423 where we were not reusing connections in the av_queue.


Enter [N/A] in the box, if an item is not applicable to your change.

Testing Before we can approve your change; please submit the following in a comment:

  • [ ] Example configuration file for the change
  • [ ] Debug log output from testing the change
  • [ ] Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • [ ] Run local packaging test showing all targets (including any new ones) build.
  • [ ] Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • [ ] Documentation required for this feature

Backporting

  • [ ] Backport to latest stable release.

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.

lecaros avatar Jun 18 '25 00:06 lecaros