RECONNECT add option to limit the number of reconnect retries
In specific situation it might be useful to give up if a reconnect is not successful or after a given number reconnect retries. This patch adds the ability to change that. The default remains the same: retry forever. Signed-off-by: Peter Lieven <pl@kamp.de>
This commit is contained in:
@@ -112,6 +112,8 @@ iscsi_create_context(const char *initiator_name)
|
||||
iscsi->tcp_keepcnt=3;
|
||||
iscsi->tcp_keepintvl=30;
|
||||
iscsi->tcp_keepidle=30;
|
||||
|
||||
iscsi->reconnect_max_retries = -1;
|
||||
|
||||
if (getenv("LIBISCSI_DEBUG") != NULL) {
|
||||
iscsi_set_log_level(iscsi, atoi(getenv("LIBISCSI_DEBUG")));
|
||||
|
||||
Reference in New Issue
Block a user