Remove a stale TODO which is not reproducible.

#cleanup

PiperOrigin-RevId: 679323555
This commit is contained in:
Jing Chen
2024-09-26 15:56:25 -07:00
committed by gVisor bot
parent 41f01d8f9c
commit 4a583f62ed
-5
View File
@@ -905,11 +905,6 @@ func (s *sender) maybeSendSegment(seg *segment, limit int, end seqnum.Value) (se
if seg.payloadSize() > available {
// A negative value causes splitSeg to panic anyways, so just panic
// earlier to get more information about the cause.
// TOOD(b/357457079): Remove this panic once the cause of negative values
// of "available" is understood.
if available < 0 {
panic(fmt.Sprintf("got available=%d, want available>=0. limit %d, s.MaxPayloadSize %d, seg.payloadSize() %d, gso.MaxSize %d, gso.MSS %d", available, limit, s.MaxPayloadSize, seg.payloadSize(), s.ep.gso.MaxSize, s.ep.gso.MSS))
}
s.splitSeg(seg, available)
}