1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-06-27 00:21:08 +02:00

Fixed timeout issue.

The protocol-timeout option was not automatically increased when the db-timeout option was increased.

Reported by Todd Vernick.
This commit is contained in:
David Steele
2016-08-25 11:27:00 -04:00
parent 5ada189a92
commit c9bdf6a9ae
3 changed files with 35 additions and 4 deletions

View File

@ -569,6 +569,16 @@ sub configTestRun
configLoadExpect($oOption, CMD_BACKUP, ERROR_OPTION_REQUIRED, OPTION_DB_PATH, 'does this stanza exist?');
}
if (testRun(++$iRun, CMD_BACKUP . ' automatically increase ' . OPTION_PROTOCOL_TIMEOUT))
{
optionSetTest($oOption, OPTION_STANZA, $strStanza);
optionSetTest($oOption, OPTION_DB_PATH, '/db');
optionSetTest($oOption, OPTION_DB_TIMEOUT, OPTION_DEFAULT_PROTOCOL_TIMEOUT + 30);
configLoadExpect($oOption, CMD_BACKUP);
optionTestExpect(OPTION_PROTOCOL_TIMEOUT, OPTION_DEFAULT_PROTOCOL_TIMEOUT + 60);
}
}
#-------------------------------------------------------------------------------------------------------------------------------