Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add iscsi_reset_next_reconnect interface #429

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

raywang-dev
Copy link
Contributor

When an iSCSI connection enters the reconnection phase, the backoff time (next_reconnect) increases with reconnection retry_cnt. However, if the client detects that the target has recovered before reaching next_reconnect, calling iscsi_reconnect/iscsi_force_reconnect has no any effect, making fast reconnection impossible.

This patch introduces an interface to reset next_reconnect, so that the client can reset the backoff time upon detecting target recovery and achieve faster reconnection.

Resolves: #428

When an iSCSI connection enters the reconnection phase, the backoff
time (next_reconnect) increases with reconnection retry_cnt. However,
if the client detects that the target has recovered before reaching
next_reconnect, calling iscsi_reconnect/iscsi_force_reconnect has no
any effect, making fast reconnection impossible.

This patch introduces an interface to reset next_reconnect, so that
the client can reset the backoff time upon detecting target recovery
and achieve faster reconnection.

Resolves: sahlberg#428

Signed-off-by: raywang <[email protected]>
@sahlberg sahlberg merged commit 758e09e into sahlberg:master Nov 1, 2024
1 check passed
@sahlberg
Copy link
Owner

sahlberg commented Nov 1, 2024

Merged, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could we support resetting next_reconnect or provide a way to force reconnection?
2 participants