forked from quic-go/quic-go
put buffers back into the pool after reading packets
This commit is contained in:
@@ -186,6 +186,9 @@ func (s *Session) run() {
|
||||
s.tryQueueingUndecryptablePacket(p)
|
||||
continue
|
||||
}
|
||||
// This is a bit unclean, but works properly, since the packet always
|
||||
// begins with the public header and we never copy it.
|
||||
putPacketBuffer(p.publicHeader.Raw)
|
||||
if s.delayedAckOriginTime.IsZero() {
|
||||
s.delayedAckOriginTime = time.Now()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user