You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(http-client): add knob to disable connection pooling (#1933)
# What does this PR do?
This PR adds a configuration knob to disable connection pooling for the HTTP client common component. This doesn't assume that the backend has specific support for connection pooling, but allows to say "if you have connection pooling, do not use it".
# Motivation
This PR has been split off #1806, which builds an agent-level HTTP client on top of the basic HTTP client. To communicate with the agent, the current behavior of existing helpers in e.g. libdd-common is to disable connection pooling by default, because the agent has a low keep-alive timeout and the most common case is to flush data on a periodic schedule. There, connection pooling is detrimental as the connection will be invalidated as soon as it is re-used, see https://github.com/DataDog/libdatadog/blob/cff72917bfe6a4f916db03294ae1ae895f58b882/libdd-common/src/http_common.rs#L118-L128.
# Additional Notes
N/A
# How to test the change?
N/A
Co-authored-by: yann.hamdaoui <yann.hamdaoui@datadoghq.com>
0 commit comments