Configure http2 with higher maxconcurrent streams (#7363)

This value is needed for Minio's internode communication,
read the meaning of this value as per the HTTP 2.0 spec

https://http2.github.io/http2-spec/#rfc.section.5.1.2
This commit is contained in:
Harshavardhana
2019-03-14 11:57:35 -07:00
committed by kannappanr
parent a0ee7be050
commit 233824bf92
26 changed files with 1813 additions and 1286 deletions
+5 -5
View File
@@ -41,10 +41,10 @@ func (f *flow) take(n int32) {
// add adds n bytes (positive or negative) to the flow control window.
// It returns false if the sum would exceed 2^31-1.
func (f *flow) add(n int32) bool {
remain := (1<<31 - 1) - f.n
if n > remain {
return false
sum := f.n + n
if (sum > n) == (f.n > 0) {
f.n = sum
return true
}
f.n += n
return true
return false
}