MrVito
V2EX  ›  问与答

在应用层心跳包的设计中,当确认心跳包已经没有了的时候,服务器是应该直接调用 close,还是先 shutdown write?

  •  
  •   MrVito · Apr 4, 2020 · 1623 views
    This topic created in 2241 days ago, the information mentioned may be changed or developed.

    单线程多进程的服务器模型,不存在一个 fd 被多个进程同时使用的情况。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3103 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:51 · PVG 21:51 · LAX 06:51 · JFK 09:51
    ♥ Do have faith in what you're doing.