kcp icon indicating copy to clipboard operation
kcp copied to clipboard

fix: respect the configured receive window

Open paulpach opened this issue 3 years ago • 5 comments

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

paulpach avatar Oct 22 '20 00:10 paulpach

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 avatar Sep 21 '21 08:09 miwarnec

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

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

miwarnec avatar Nov 28 '21 15:11 miwarnec

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

szhnet avatar Nov 29 '21 03:11 szhnet

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

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

miwarnec avatar Nov 30 '21 09:11 miwarnec

@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.

c0nd3v avatar Oct 24 '22 04:10 c0nd3v