We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1dff5c commit 8c62a9bCopy full SHA for 8c62a9b
kcp.go
@@ -273,7 +273,7 @@ func (kcp *KCP) Recv(buffer []byte) (n int) {
273
count = 0
274
for k := range kcp.rcv_buf {
275
seg := &kcp.rcv_buf[k]
276
- if seg.sn == kcp.rcv_nxt && len(kcp.rcv_queue) < int(kcp.rcv_wnd) {
+ if seg.sn == kcp.rcv_nxt && len(kcp.rcv_queue)+count < int(kcp.rcv_wnd) {
277
kcp.rcv_nxt++
278
count++
279
} else {
@@ -496,7 +496,7 @@ func (kcp *KCP) parse_data(newseg segment) bool {
496
count := 0
497
498
499
500
501
502
0 commit comments