You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/07/21 07:43:29 UTC

[GitHub] [incubator-brpc] searKing commented on issue #1087: golang grpc client 请求 brpc服务,在response非常大的时候报错

searKing commented on issue #1087:
URL: https://github.com/apache/incubator-brpc/issues/1087#issuecomment-1191154811

   > > 加上connect size,maxmessagesize 已
   > 
   > 麻烦问一下是具体哪个参数,我也遇到了
   
    grpc.DialContext的opts增加如下选项 https://github.com/grpc/grpc-go/pull/1210 即可,大小可以根据需要调整:
   ```go 
   grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(math.MaxInt32), 
       grpc.MaxCallSendMsgSize(math.MaxInt32)),
       grpc.WithInitialConnWindowSize(math.MaxInt32),
       grpc.WithInitialWindowSize(math.MaxInt32)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org