File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1166,7 +1166,7 @@ func (t *http2Client) applySettings(ss []http2.Setting) {
1166
1166
t .mu .Lock ()
1167
1167
for _ , stream := range t .activeStreams {
1168
1168
// Adjust the sending quota for each stream.
1169
- stream .sendQuotaPool .add (int (s .Val - t .streamSendQuota ))
1169
+ stream .sendQuotaPool .add (int (s .Val ) - int ( t .streamSendQuota ))
1170
1170
}
1171
1171
t .streamSendQuota = s .Val
1172
1172
t .mu .Unlock ()
Original file line number Diff line number Diff line change @@ -875,7 +875,7 @@ func (t *http2Server) applySettings(ss []http2.Setting) {
875
875
t .mu .Lock ()
876
876
defer t .mu .Unlock ()
877
877
for _ , stream := range t .activeStreams {
878
- stream .sendQuotaPool .add (int (s .Val - t .streamSendQuota ))
878
+ stream .sendQuotaPool .add (int (s .Val ) - int ( t .streamSendQuota ))
879
879
}
880
880
t .streamSendQuota = s .Val
881
881
}
You can’t perform that action at this time.
0 commit comments