mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
netstack/tcp: fix calculating a number of outstanding packets
In case of GSO, a segment can container more than one packet and we need to use the pCount() helper to get a number of packets. PiperOrigin-RevId: 251743020
This commit is contained in:
@@ -779,7 +779,7 @@ func (s *sender) sendData() {
|
||||
break
|
||||
}
|
||||
dataSent = true
|
||||
s.outstanding++
|
||||
s.outstanding += s.pCount(seg)
|
||||
s.writeNext = seg.Next()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user