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

@@ -5,5 +5,5 @@ import "github.com/lucas-clemente/quic-go/internal/wire"
type Frame struct {
wire.Frame // nil if the frame has already been acknowledged in another packet
OnLost func(wire.Frame)
OnAcked func()
OnAcked func(wire.Frame)
}