rigurously fix all tests

This commit is contained in:
Patricio Whittingslow
2025-11-05 20:12:02 -03:00
parent f5157e7e4a
commit e3c6d68288
2 changed files with 16 additions and 2 deletions
+4 -1
View File
@@ -179,11 +179,14 @@ func (rtx *ringTx) RecvACK(ack Value) error {
}
func (rtx *ringTx) sentAndUnsentBuffer() internal.Ring {
off := rtx.sentoff
end := rtx.unsentend
if end == 0 {
end = rtx.sentend
} else if rtx.sentend == 0 {
off = rtx.unsentoff
}
return internal.Ring{Buf: rtx.rawbuf, Off: rtx.sentoff, End: end}
return internal.Ring{Buf: rtx.rawbuf, Off: off, End: end}
}
func (rtx *ringTx) unsentRing() (internal.Ring, int) {