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

Closing stuck Fin_WAIT2 on application side #205

Open
ajamous opened this issue Feb 1, 2022 · 0 comments
Open

Closing stuck Fin_WAIT2 on application side #205

ajamous opened this issue Feb 1, 2022 · 0 comments

Comments

@ajamous
Copy link

ajamous commented Feb 1, 2022

There are some network conditions which may lead to connection being stuck in Fin_Wait2 state in defintley which is causing submit_sm to not be sent to the upstream.

$ cat /proc/sys/net/ipv4/tcp_fin_timeout
60

The kernel timeout only applies if the connection is orphaned. when the connection is still attached to a socket, the program that owns that socket is responsible for timing out the shutdown of the connection. The question is there a way to set fin_wait2 timeout on the application side to clean up the if the connection is stuck in this state for more than 60 seconds ?

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

No branches or pull requests

1 participant