Skip to content

Commit

Permalink
output: initialize network defaults for output instances (fluent#4050) (
Browse files Browse the repository at this point in the history
fluent#4088)

For plugins that do not implement a config map interface, the networking
setup was missing, leading to connect_timeout=0, no keep alive, plus
others.

In this patch we always initialize the plugin instance network defaults,
but this becomes a fixed value that cannot be changed through the
configuration.

The long term solution is to migrate plugins to use config maps.

Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper authored and pwhelan committed Sep 16, 2021
1 parent 0ba55c1 commit 9983187
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flb_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,9 @@ int flb_output_init_all(struct flb_config *config)
}
}

/* Init network defaults */
flb_net_setup_init(&ins->net_setup);

/* Get Upstream net_setup configmap */
ins->net_config_map = flb_upstream_get_config_map(config);
if (!ins->net_config_map) {
Expand Down

0 comments on commit 9983187

Please sign in to comment.