From 4a583f62ed24352704caa74a39387cfb41ed842d Mon Sep 17 00:00:00 2001 From: Jing Chen Date: Thu, 26 Sep 2024 15:52:32 -0700 Subject: [PATCH] Remove a stale TODO which is not reproducible. #cleanup PiperOrigin-RevId: 679323555 --- pkg/tcpip/transport/tcp/snd.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/tcpip/transport/tcp/snd.go b/pkg/tcpip/transport/tcp/snd.go index eb5beea04..1e20ac2c3 100644 --- a/pkg/tcpip/transport/tcp/snd.go +++ b/pkg/tcpip/transport/tcp/snd.go @@ -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) }