-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
out_http: Fix keepalive #6784
out_http: Fix keepalive #6784
Conversation
test.conf:
In addition to above file, to repro:
Then write several more lines to test_data.log:
The last number above indicates that the connection is being reused for subsequent requests |
Valgrind output
|
When HTTP keepalive is desired, specify the Connection: keep-alive header. This is a regression from e045d65 Signed-off-by: Ben Chess <[email protected]>
Update the stream keepalive flag to match the net keepalive setting. This is required for the upstream connection to get recycled Signed-off-by: Ben Chess <[email protected]>
9f0ace8
to
f327bca
Compare
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Bump |
Hi Ben, thanks for sticking around, I reviewed the fix and it makes sense to me. The only "issue" with it is that http keepalive is bound to upstream keepalive which in theory could not be the case but in practice that's how it is and overall the pros overcome the cons so I don't have a complaint. It seems like CI is not having a good time at the moment but that's unrelated to your PR, once we can verify everything it'll be ready to be merged. Once again, thanks for the patience! |
@bchess, it seems like this fix could be transparently applied to the 2.0 branch, do you want to backport it yourself once it's merged or would you rather have someone from the team do it? |
@edsiper This is ready to be merged from my point of view, let's wrap it up. |
Thanks for approving. I'm happy to take a stab at backporting to 2.0 after this is merged |
hi, anything else I need to do at this point? |
@leonardo-albertovich @edsiper can you merge? |
@edsiper I checked out the PR and it seems to do what it says. It works as well as it should. I vote to merge it. *** edit *** The CI failure is a recurring one we are having with the internal log tests and occurs to it being too strict WRT to timings. |
Fixes #6783
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:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
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.