merge with main and fix failing tests

This commit is contained in:
soypat
2026-09-06 13:13:44 -07:00
parent 53b606a1ff
commit 7e80dc5348
5 changed files with 598 additions and 121 deletions
+3 -1
View File
@@ -272,7 +272,9 @@ func (tcb *ControlBlock) HasPendingRetransmit() bool {
// unacknowledged range [snd.UNA, snd.NXT] or the connection cannot send data, so
// a misbehaving [Policy] cannot corrupt the send sequence space.
func (tcb *ControlBlock) RetransmitFrom(newNxt Value) bool {
if !tcb._state.TxDataOpen() {
if !tcb._state.txQueuedDataOpen() {
// Matches [State.TxDataOpen] and other states that may have data queued to make progress.
// Matches [ControlBlock.PendingSegment] gate (RFC 9293 §3.10.8).
return false
} else if newNxt.LessThan(tcb.snd.UNA) || tcb.snd.NXT.LessThan(newNxt) {
return false