-
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
http_server: Disable keepalive automatically when HTTP/1.1 and keepalive is enabled for curl requests #9019
http_server: Disable keepalive automatically when HTTP/1.1 and keepalive is enabled for curl requests #9019
Conversation
Regarding keepalive functionality, in the Upstream interface, we implemented keepalive as an internal feature: https://github.com/fluent/fluent-bit/blob/master/src/flb_upstream.c#L63-L66 For downstream, the options available are here, I am wondering if it makes sense or not to add it here instead of each plugin it self: https://github.com/fluent/fluent-bit/blob/master/src/flb_downstream.c#L36-L61 |
ffdf963
to
ce2d751
Compare
I also confirmed that upgrading process of HTTP/2 with TLS(h2) can works for HTTPS with TLS settings. |
… failed Signed-off-by: Hiroshi Hatake <[email protected]>
ce2d751
to
87ee0f5
Compare
3bba03f
to
8ebbf20
Compare
Signed-off-by: Hiroshi Hatake <[email protected]>
8ebbf20
to
b27bff1
Compare
closing this since #9036 fixes the content-length problem |
When using default option of curl, the current in_splunk tries to keep its connections due to keepalive flags is enabled.
However, this behavior is not desired because Splunk HEC requests are expected OK response with:
This is not compatible for HTTP1.1 keepalive.
So, we need to turn off for testing with curl case.
Closes #9010
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:
CURL logs
HTTP/2 upgrade with TLS:
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
Not needed.
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.