Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一次性发送1000个1K的包,需要8-10秒左右 #381

Open
NginxL opened this issue Nov 29, 2022 · 5 comments
Open

一次性发送1000个1K的包,需要8-10秒左右 #381

NginxL opened this issue Nov 29, 2022 · 5 comments

Comments

@NginxL
Copy link

NginxL commented Nov 29, 2022

快速模式,也做了控流
mtu=996,接收和发送窗口都是1024.
但是发送就是比tcp慢很多,tcp只需要5秒。
求教大神,这个是什么地方没设置对吗

@luodaoyi
Copy link

解决了吗? 我遇到了跟你差不多的问题 recv会等待10多秒

@skywind3000
Copy link
Owner

请过一遍 wiki

@NginxL
Copy link
Author

NginxL commented Apr 17, 2024

解决了吗? 我遇到了跟你差不多的问题 recv会等待10多秒

我之前代码实现问题

@luodaoyi
Copy link

我用的kcp-go开发的服务端,客户端使用kcp-cpp,我发现是kcp-cpp底层recv的问题,kcp-cpp是调用的recvfrom,这里会阻塞10秒,判断应该是服务端数据没发过来。 两边参数一致 这个搞不清原因,我继续研究下

@NginxL
Copy link
Author

NginxL commented Apr 17, 2024

我用的kcp-go开发的服务端,客户端使用kcp-cpp,我发现是kcp-cpp底层recv的问题,kcp-cpp是调用的recvfrom,这里会阻塞10秒,判断应该是服务端数据没发过来。 两边参数一致 这个搞不清原因,我继续研究下

kcp内部需要update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants