mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
rename process ack segment
This commit is contained in:
parent
165e323fab
commit
03ff683686
@ -151,7 +151,7 @@ func (kcp *KCP) Input(data []byte) int {
|
||||
kcp.lastPayloadTime = kcp.current
|
||||
case *AckSegment:
|
||||
kcp.HandleOption(seg.Opt)
|
||||
kcp.sendingWorker.ProcessAckSegment(seg)
|
||||
kcp.sendingWorker.ProcessSegment(seg)
|
||||
kcp.lastPayloadTime = kcp.current
|
||||
case *CmdOnlySegment:
|
||||
kcp.HandleOption(seg.Opt)
|
||||
|
@ -273,7 +273,7 @@ func (this *SendingWorker) ProcessAck(number uint32) {
|
||||
this.FindFirstUnacknowledged()
|
||||
}
|
||||
|
||||
func (this *SendingWorker) ProcessAckSegment(seg *AckSegment) {
|
||||
func (this *SendingWorker) ProcessSegment(seg *AckSegment) {
|
||||
if this.remoteNextNumber < seg.ReceivingWindow {
|
||||
this.remoteNextNumber = seg.ReceivingWindow
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user