GithubHelp home page GithubHelp logo

Comments (7)

skywind3000 avatar skywind3000 commented on June 12, 2024

会不会是你发的数据量太大了,造成堆积了?超过了当前 KCP 的发送能力?

检查下:ikcp_waitsnd

from kcp.

Haoson avatar Haoson commented on June 12, 2024

会不会是你发的数据量太大了,造成堆积了?超过了当前 KCP 的发送能力?

检查下:ikcp_waitsnd

好的,感谢。这个主要是复现很麻烦,我准备加更多接口在上层,方便时候可以打印到日志或者调整

from kcp.

jiangguilong2000 avatar jiangguilong2000 commented on June 12, 2024

我记得用netty时有遇到过客户端读缓冲区满,导致服务器写入拥堵的问题

from kcp.

skywind3000 avatar skywind3000 commented on June 12, 2024

@Haoson 看这里:
https://github.com/skywind3000/kcp/wiki/Flow-Control-for-Users

from kcp.

Haoson avatar Haoson commented on June 12, 2024

@Haoson 看这里: https://github.com/skywind3000/kcp/wiki/Flow-Control-for-Users
感谢感谢,其实这些机制我基本都实现了,甚至issuse所有问题都之前都看过一遍。
我在底层做了一个可配置的、根据当前ikcp_waitsnd数量,超过水位线就踢连接的功能,不过我当时只在网关层实现了,没有在客户端实现,因为游戏本身是上行数量很小,不太可能很大,不过你这么说是提醒了我,客户端是不是也需要做一个类似机制?

from kcp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.