Forum Discussion

neeeewbie's avatar
Dec 24, 2019

send fin packet when got reset packet

Hi guys !

 

I have a question!

can i configure send fin packet when got reset packet ?

is it possible?

 

thank you!!

  • Surgeon's avatar
    Surgeon
    Dec 24, 2019

    loose close is based on FIN flag. The RST receiver must close the connection. https://tools.ietf.org/html/rfc793

     

  • Surgeon's avatar
    Surgeon
    Ret. Employee

    It will not make sense. If a remote peer sends RST, it means that the remote peer already closed connection and is not willing to continue talking.

     

    FIN means that " I finished talking to you, but I'll still listen to everything you have to say until you say that you're done"

     

    On top of that, as per RFC793, the receiver of a RST aborts the connection and goes to the CLOSED state. So, sending FIN in that case will break RFC rules

     

    • neeeewbie's avatar
      neeeewbie
      Icon for MVP rankMVP

      aha thank you!

      If I don't use the loose close option, do I still have a connection when I receive a reset packet?

      • Surgeon's avatar
        Surgeon
        Ret. Employee

        loose close is based on FIN flag. The RST receiver must close the connection. https://tools.ietf.org/html/rfc793