V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ruandao
V2EX  ›  问与答

tcp 心跳问题

  •  
  •   ruandao · Jan 17, 2019 · 1106 views
    This topic created in 2670 days ago, the information mentioned may be changed or developed.

    心跳是,对端没有发送消息情况下,探活用的

    如果发了消息,对端不存在,系统会尝试重新发送几次,如果没接到对端的 ack 信息,那么系统会发送异常事件

    如果按上面的来看,那么如果,频繁发送消息,是不需要心跳机制的?

    (上面的理解是否有错?)

    谢谢

    2 replies    2019-01-18 09:07:26 +08:00
    nfroot
        1
    nfroot  
       Jan 18, 2019   ❤️ 1
    如果稳定的频繁发送消息,应该是不需要的。。。。主要是要稳定的有数据传输
    ruandao
        2
    ruandao  
    OP
       Jan 18, 2019
    @nfroot #1 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1012 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 235ms · UTC 18:33 · PVG 02:33 · LAX 11:33 · JFK 14:33
    ♥ Do have faith in what you're doing.