Merge pull request #1037 from lucas-clemente/flow-control-mutexes

remove flow control mutexes for the sending data
This commit is contained in:
Marten Seemann
2017-12-16 08:57:59 +07:00
committed by GitHub
3 changed files with 5 additions and 21 deletions

View File

@@ -102,9 +102,6 @@ func (c *streamFlowController) AddBytesSent(n protocol.ByteCount) {
}
func (c *streamFlowController) SendWindowSize() protocol.ByteCount {
c.mutex.Lock()
defer c.mutex.Unlock()
window := c.baseFlowController.sendWindowSize()
if c.contributesToConnection {
window = utils.MinByteCount(window, c.connection.SendWindowSize())