What causes a TCP/IP reset (RST) flag to be sent?

后端 未结 8 1604
谎友^
谎友^ 2020-11-27 10:47

I\'m trying to figure out why my app\'s TCP/IP connection keeps hiccuping every 10 minutes (exactly, within 1-2 seconds). I ran Wireshark and discovered that after 10 minut

8条回答
  •  余生分开走
    2020-11-27 11:37

    This is because there is another process in the network sending RST to your TCP connection.

    Normally RST would be sent in the following case

    • A process close the socket when socket using SO_LINGER option is enabled
    • OS is doing the resource cleanup when your process exit without closing socket.

    In your case, it sounds like a process is connecting your connection(IP + port) and keeps sending RST after establish the connection.

提交回复
热议问题