rename process ack segment

pull/215/head
v2ray 9 years ago
parent 165e323fab
commit 03ff683686
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -151,7 +151,7 @@ func (kcp *KCP) Input(data []byte) int {
kcp.lastPayloadTime = kcp.current kcp.lastPayloadTime = kcp.current
case *AckSegment: case *AckSegment:
kcp.HandleOption(seg.Opt) kcp.HandleOption(seg.Opt)
kcp.sendingWorker.ProcessAckSegment(seg) kcp.sendingWorker.ProcessSegment(seg)
kcp.lastPayloadTime = kcp.current kcp.lastPayloadTime = kcp.current
case *CmdOnlySegment: case *CmdOnlySegment:
kcp.HandleOption(seg.Opt) kcp.HandleOption(seg.Opt)

@ -273,7 +273,7 @@ func (this *SendingWorker) ProcessAck(number uint32) {
this.FindFirstUnacknowledged() this.FindFirstUnacknowledged()
} }
func (this *SendingWorker) ProcessAckSegment(seg *AckSegment) { func (this *SendingWorker) ProcessSegment(seg *AckSegment) {
if this.remoteNextNumber < seg.ReceivingWindow { if this.remoteNextNumber < seg.ReceivingWindow {
this.remoteNextNumber = seg.ReceivingWindow this.remoteNextNumber = seg.ReceivingWindow
} }

Loading…
Cancel
Save