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

fix: respect the configured receive window #291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paulpach
Copy link

the count should be less than the configured receive window, not the default receive window

the count should be less than the configured receive window,  not the default receive window
@miwarnec
Copy link
Contributor

hey @skywind3000 can you confirm that this is a bug?
we are using kcp for Mirror Networking in Unity.
this bug seems to limit max message size for no obvious reason.

miwarnec added a commit to MirrorNetworking/kcp2k that referenced this pull request Nov 28, 2021
miwarnec added a commit to MirrorNetworking/kcp2k that referenced this pull request Nov 28, 2021
miwarnec added a commit to MirrorNetworking/kcp2k that referenced this pull request Nov 28, 2021
miwarnec added a commit to MirrorNetworking/kcp2k that referenced this pull request Nov 28, 2021
@miwarnec
Copy link
Contributor

miwarnec commented Nov 28, 2021

we have a applied this fix for C# kcp version.
it works well.

我们在 C# 版本中修复了它。它工作正常。

miwarnec added a commit to MirrorNetworking/Mirror that referenced this pull request Nov 28, 2021
- uncorks max message size from 144 KB to as much as we want based on
  receive window size.
    fixes MirrorNetworking/kcp2k#22
    fixes skywind3000/kcp#291
- feature: OnData now includes channel it was received on
- fixes #2989
@szhnet
Copy link
Contributor

szhnet commented Nov 29, 2021

这里应该是 if (count >= 256) return -2; 才对吧,frg字段只有一个字节。

sh4k3n added a commit to sh4k3n/kcp that referenced this pull request Nov 30, 2021
@miwarnec
Copy link
Contributor

这里应该是 if (count >= 256) return -2; 才对吧,frg字段只有一个字节。

Thank you. We noticed this too just now.
谢谢你。我们刚才也注意到了这一点。

@c0nd3v
Copy link

c0nd3v commented Oct 24, 2022

@skywind3000 This is your project which is supposed to be a replacement for TCP (Most used protocol in the world). Why have you not merged this pull request yet.

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

Successfully merging this pull request may close these issues.

None yet

4 participants