Skip to content

Commit

Permalink
sources/config_reader.c: do not set tcp usr timeout (#727)
Browse files Browse the repository at this point in the history
Should use system tcp usr timeout by default

Signed-off-by: rkhapov <[email protected]>
Co-authored-by: rkhapov <[email protected]>
  • Loading branch information
rkhapov and rkhapov authored Dec 12, 2024
1 parent ddcc3d1 commit d3d5676
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sources/config_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2368,14 +2368,12 @@ static int od_config_reader_hba_import(od_config_reader_t *config_reader)

static void od_config_setup_default_tcp_usr_timeout(od_config_t *config)
{
if (config->keepalive_usr_timeout == 0) {
if (config->keepalive_usr_timeout < 0) {
config->keepalive_usr_timeout =
machine_advice_keepalive_usr_timeout(
config->keepalive,
config->keepalive_keep_interval,
config->keepalive_probes);
} else if (config->keepalive_usr_timeout < 0) {
config->keepalive_usr_timeout = 0;
}
}

Expand Down

0 comments on commit d3d5676

Please sign in to comment.