return total bytes sent when resetting a stream in the flow controller

This commit is contained in:
Marten Seemann
2017-01-03 16:09:18 +07:00
parent 9e09198df6
commit 544a58a038
7 changed files with 30 additions and 17 deletions

View File

@@ -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 {