actually send Blocked frames

fixes #100
This commit is contained in:
Marten Seemann
2016-05-18 12:06:14 +07:00
parent daeb601cdc
commit e0801262bc
2 changed files with 19 additions and 0 deletions

View File

@@ -185,6 +185,8 @@ func (s *stream) Write(p []byte) (int, error) {
dataWritten += dataLen
s.flowController.AddBytesSent(protocol.ByteCount(dataLen))
s.writeOffset += protocol.ByteCount(dataLen)
s.maybeTriggerBlocked()
}
return len(p), nil