Skip to content

Commit 6c8ee36

Browse files
committed
Respect the configured receive window skywind3000#291
1 parent 27a0451 commit 6c8ee36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ikcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ int ikcp_send(ikcpcb *kcp, const char *buffer, int len)
562562
if (len <= (int)kcp->mss) count = 1;
563563
else count = (len + kcp->mss - 1) / kcp->mss;
564564

565-
if (count >= (int)IKCP_WND_RCV) return -2;
565+
if (count >= (int)kcp->rcv_wnd) return -2;
566566

567567
if (count == 0) count = 1;
568568

0 commit comments

Comments
 (0)