Getting TCP RST instead of TCP FIN #1297
-
Hello, I am using SIPSorcery's SIPTCPChannel to make a SIP call following SIP protocol. However, on SIPTCPChannel.close I am getting a TCP RST instead of TCP FIN. I did some reading and believe it has to do with the SIPTCPChannel class setting LingerOption(enabled: true, seconds: 0) which is only accessible privately within the SIPTCPChannel class. To my knowledge setting LingerOption(enabled: false, seconds: 0) would send a TCP FIN if immediate closure is needed, or LingerOption(enabled: true, seconds: >0) if immediate closure is not needed. Is there a reason why TCP RST is preferred over TCP FIN? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
td;dr the goal is to be able to quickly close a TCP socket and then re-open & bind wit the same port. |
Beta Was this translation helpful? Give feedback.
See here and here .
td;dr the goal is to be able to quickly close a TCP socket and then re-open & bind wit the same port.