forked from quic-go/quic-go
return total bytes sent when resetting a stream in the flow controller
This commit is contained in:
@@ -66,6 +66,10 @@ func (c *flowController) AddBytesSent(n protocol.ByteCount) {
|
||||
c.bytesSent += n
|
||||
}
|
||||
|
||||
func (c *flowController) GetBytesSent() protocol.ByteCount {
|
||||
return c.bytesSent
|
||||
}
|
||||
|
||||
// UpdateSendWindow should be called after receiving a WindowUpdateFrame
|
||||
// it returns true if the window was actually updated
|
||||
func (c *flowController) UpdateSendWindow(newOffset protocol.ByteCount) bool {
|
||||
|
||||
Reference in New Issue
Block a user