mirror of https://github.com/grpc/grpc-go.git
transport: fix maxStreamID to align with http2 spec (#5948)
This commit is contained in:
parent
4e4d8288ff
commit
9326362a37
|
|
@ -50,5 +50,6 @@ const (
|
|||
|
||||
// MaxStreamID is the upper bound for the stream ID before the current
|
||||
// transport gracefully closes and new transport is created for subsequent RPCs.
|
||||
// This is set to 75% of math.MaxUint32. It's exported so that tests can override it.
|
||||
var MaxStreamID = uint32(3_221_225_472)
|
||||
// This is set to 75% of 2^31-1. Streams are identified with an unsigned 31-bit
|
||||
// integer. It's exported so that tests can override it.
|
||||
var MaxStreamID = uint32(math.MaxInt32 * 3 / 4)
|
||||
|
|
|
|||
Loading…
Reference in New Issue