Skip to content

Commit

Permalink
Merge pull request #63 from mark4z/merge/grpc
Browse files Browse the repository at this point in the history
fix max message size
  • Loading branch information
AlexStocks authored Mar 3, 2023
2 parents 9001268 + fb82d3f commit df20316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/triple/dubbo3_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ func newGrpcServerWithCodec(opt *config.Option) *grpc.Server {
}

if opt.GRPCMaxServerRecvMsgSize != 0 {
serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(opt.GRPCMaxServerSendMsgSize))
serverOpts = append(serverOpts, grpc.MaxRecvMsgSize(opt.GRPCMaxServerRecvMsgSize))
}
if opt.GRPCMaxCallSendMsgSize != 0 {
serverOpts = append(serverOpts, grpc.MaxSendMsgSize(opt.GRPCMaxServerRecvMsgSize))
serverOpts = append(serverOpts, grpc.MaxSendMsgSize(opt.GRPCMaxCallSendMsgSize))
}

if opt.ProxyModeEnable {
Expand Down

0 comments on commit df20316

Please sign in to comment.