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

cherry-pick(istgt config): add TCPUserTimeout setting in istgt configuration #366

Merged

Conversation

mittachaitu
Copy link
Contributor

This PR is cherry-pick of #354

Signed-off-by: mittachaitu [email protected]

…penebs-archive#354)

This commit adds new setting called TCPUserTimeout in istgt configuration.
Default value of TCPUserTimeout is configured to 120 seconds which means
maximum amount of time in seconds that transmitted data may remain unacknowledged,
or buffered data may remain untransmitted(due to zero window size) before
TCP will forcibly close the corresponding connection and return error event
to application.

**Why is this change needed**:
Current implementation of cStor-istgt allows only one initiator
to consume a LUN(volume) at a time. When initiator machine is
abruptly powered-off connection is no more active between client & target.
To know about client connection status istgt configures TCP_USER_TIMEOUT
to 120 seconds during login time.

**NOTE**:
TCP_USER_TIMEOUT will helpful only if there is packet flow from istgt.
Here, if connection remains idle for 20 seconds then istgt will send
Nop-In request to client(to check availability). If client is available
things will work smooth else if packet is unacknoweldged for 120 secongs
then connection will be dropped.

Signed-off-by: mittachaitu <[email protected]>
@prateekpandey14 prateekpandey14 merged commit d942492 into openebs-archive:v2.11.x Jul 22, 2021
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.

None yet

2 participants