node-smpp icon indicating copy to clipboard operation
node-smpp copied to clipboard

Closing stuck Fin_WAIT2 on application side

Open ajamous opened this issue 3 years ago • 0 comments

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 ?

ajamous avatar Feb 01 '22 12:02 ajamous