mirror of
https://github.com/skywind3000/kcp.git
synced 2025-01-13 20:10:12 +08:00
fixed some issue
This commit is contained in:
parent
0b301fdf75
commit
879bc236ef
2
ikcp.c
2
ikcp.c
@ -793,7 +793,7 @@ int ikcp_input(ikcpcb *kcp, const char *data, long size)
|
|||||||
} else {
|
} else {
|
||||||
if (kcp->incr < mss) kcp->incr = mss;
|
if (kcp->incr < mss) kcp->incr = mss;
|
||||||
kcp->incr += (mss * mss) / kcp->incr + (mss / 16);
|
kcp->incr += (mss * mss) / kcp->incr + (mss / 16);
|
||||||
if ((kcp->cwnd + 1) * mss >= kcp->incr) {
|
if ((kcp->cwnd + 1) * mss <= kcp->incr) {
|
||||||
kcp->cwnd++;
|
kcp->cwnd++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user