Do I need to heartbeat to keep a TCP connection open?

前端 未结 15 2055
温柔的废话
温柔的废话 2020-11-27 09:56

I have two components that that communicate via TCP/IP. Component A acts as a server/listener and Component B is the client. The two should communicate as quickly as possi

15条回答
  •  抹茶落季
    2020-11-27 10:23

    Heartbeat isn't a necessity for TCP protocols. It's implementation is there to detect whether the otherside has terminated the connection in the non standard way (i.e not gone through the tear down process).

提交回复
热议问题