don't enqueue stream for sending on reordered MAX_STREAM_DATA frames (#4269)

This commit is contained in:
Marten Seemann
2024-02-03 13:02:13 +07:00
committed by GitHub
parent 07ec3245bd
commit 198de32ef6
7 changed files with 47 additions and 22 deletions

View File

@@ -48,10 +48,12 @@ func (c *baseFlowController) AddBytesSent(n protocol.ByteCount) {
}
// UpdateSendWindow is called after receiving a MAX_{STREAM_}DATA frame.
func (c *baseFlowController) UpdateSendWindow(offset protocol.ByteCount) {
func (c *baseFlowController) UpdateSendWindow(offset protocol.ByteCount) (updated bool) {
if offset > c.sendWindow {
c.sendWindow = offset
return true
}
return false
}
func (c *baseFlowController) sendWindowSize() protocol.ByteCount {