Moving from marten-seemann/go-libp2p-webtransport#8.
We should use the resource manager to control flow control window increases (similar to
|
func (c *conn) allowWindowIncrease(size uint64) bool { |
|
return c.scope.ReserveMemory(int(size), network.ReservationPriorityMedium) == nil |
|
} |
).