We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e971292 commit a8d39bbCopy full SHA for a8d39bb
plugins/out_http/http.c
@@ -178,6 +178,18 @@ static int http_post(struct flb_out_http *ctx,
178
ctx->host, ctx->port,
179
ctx->proxy, 0);
180
181
+ if (c == NULL) {
182
+ flb_plg_error(ctx->ins, "[http_client] failed to create HTTP client");
183
+ if (payload_buf != body) {
184
+ flb_free(payload_buf);
185
+ }
186
+
187
+ if (u_conn) {
188
+ flb_upstream_conn_release(u_conn);
189
190
191
+ return FLB_RETRY;
192
193
194
if (c->proxy.host) {
195
flb_plg_debug(ctx->ins, "[http_client] proxy host: %s port: %i",
0 commit comments