put STREAM frames back into the pool when they are acknowledged

This commit is contained in:
Marten Seemann
2019-09-04 20:36:45 +07:00
parent 4cfbb2f134
commit 4cb8bf3101
5 changed files with 15 additions and 8 deletions

View File

@@ -446,7 +446,7 @@ func (h *sentPacketHandler) onPacketAcked(p *Packet, rcvTime time.Time) error {
for _, f := range p.Frames {
if f.OnAcked != nil {
f.OnAcked()
f.OnAcked(f.Frame)
}
}
if p.includedInBytesInFlight {