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

长连接 服务器有问题

  •  
  •   helloworld12 · Jan 19, 2018 · 2024 views
    This topic created in 3031 days ago, the information mentioned may be changed or developed.

    主要有的客户端是发给服务器数据包,发了很多,都没接收到 然后过了一段时间又批量接收到

    要从哪个方向来解决问题?

    6 replies    2018-01-19 22:25:50 +08:00
    xhystc
        1
    xhystc  
       Jan 19, 2018 via Android   ❤️ 1
    是 tcp nagle 算法的原因吗
    ysc3839
        2
    ysc3839  
       Jan 19, 2018   ❤️ 1
    可能是丢包了重传。
    akira
        3
    akira  
       Jan 19, 2018   ❤️ 1
    阻塞模式 并且 工作和收发写在一个线程里面了
    veelog
        4
    veelog  
       Jan 19, 2018 via iPhone   ❤️ 1
    netstat 看看接收缓冲区是否有数据滞留,如果有就是三楼的原因了
    helloworld12
        5
    helloworld12  
    OP
       Jan 19, 2018
    @akira 不同的协程
    helloworld12
        6
    helloworld12  
    OP
       Jan 19, 2018
    @veelog 嗯,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3398 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 137ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
    ♥ Do have faith in what you're doing.