Skip to content

Commit

Permalink
upstream: added tcp keepalive settings
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Nov 9, 2024
1 parent f0904b3 commit c32719c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/flb_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,32 @@ struct flb_config_map upstream_net[] = {
"Set maximum time allowed for an idle Keepalive connection"
},

{
FLB_CONFIG_MAP_BOOL, "net.tcp_keepalive", "off",
0, FLB_TRUE, offsetof(struct flb_net_setup, tcp_keepalive),
"Enable or disable the use of TCP keepalive probes"
},

{
FLB_CONFIG_MAP_INT, "net.tcp_keepalive_time", "-1",
0, FLB_TRUE, offsetof(struct flb_net_setup, tcp_keepalive_time),
"interval between the last data packet sent and the first "
"TCP keepalive probe"
},

{
FLB_CONFIG_MAP_INT, "net.tcp_keepalive_interval", "-1",
0, FLB_TRUE, offsetof(struct flb_net_setup, tcp_keepalive_interval),
"interval between TCP keepalive probes when no response is"
"received on a keepidle probe"
},

{
FLB_CONFIG_MAP_INT, "net.tcp_keepalive_probes", "-1",
0, FLB_TRUE, offsetof(struct flb_net_setup, tcp_keepalive_probes),
"number of unacknowledged probes to consider a connection dead"
},

{
FLB_CONFIG_MAP_TIME, "net.io_timeout", "0s",
0, FLB_TRUE, offsetof(struct flb_net_setup, io_timeout),
Expand Down

0 comments on commit c32719c

Please sign in to comment.