Skip to content

Commit

Permalink
Merge pull request #14785 from petermattis/pmattis/max-concurrent-str…
Browse files Browse the repository at this point in the history
…eams

rpc: set max-concurrent streams to math.MaxInt32
  • Loading branch information
petermattis authored Apr 11, 2017
2 parents af1e8eb + 636448d commit 5b794ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/rpc/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ func NewServer(ctx *Context) *grpc.Server {
// Our maximum kv size is unlimited, so we need this to be very large.
// TODO(peter,tamird): need tests before lowering
grpc.MaxMsgSize(math.MaxInt32),
// The default number of concurrent streams/requests on a client connection
// is 100, while the server is unlimited. The client setting can only be
// controlled by adjusting the server value. Set a very large value for the
// server value so that we have no fixed limit on the number of concurrent
// streams/requests on either the client or server.
grpc.MaxConcurrentStreams(math.MaxInt32),
grpc.RPCDecompressor(snappyDecompressor{}),
}
// Compression is enabled separately from decompression to allow staged
Expand Down

0 comments on commit 5b794ce

Please sign in to comment.