mark4z opened a new pull request, #2246:
URL: https://github.com/apache/dubbo-go/pull/2246

   According to the pr of https://github.com/apache/dubbo-go/pull/1654, for the 
client side, the function works normally, but for the server side, the order of 
Provider Export is not always the same, resulting in sometimes 
max-server-send-msg-size not taking effect, and for the server side, it is not 
possible to customize the message size based on the request, so a more 
appropriate The more appropriate setting should be placed on the protocol.
   This pr also fixes the grpc protocol, which can also be used to customize 
the message size in this way.
   
   What this PR does:
   Custom triple/grpc server message size
   For message size , The available units are, b/kb/kib/mib/mb/gib/gb, 1kb = 
1000b and 1kib = 1024b
   
   Provider:
   
   dubbo:
     protocols:
       triple:
         name: tri
         port: 20000
         max-server-send-msg-size: 4mib
         max-server-recv-msg-size: 4mib
   Consumer:
   
     consumer:
       references:
         GreeterClientImpl:
           protocol: tri
           params:
             max-call-send-msg-size: 4mib
             max-call-recv-msg-size: 4mib
   Which issue(s) this PR fixes:
   Fixes https://github.com/apache/dubbo-go/issues/2176
   
   You should pay attention to items below to ensure your pr passes our ci test
   We do not merge pr with ci tests failed
   
    All ut passed (run 'go test ./...' in project root)
    After go-fmt ed , run 'go fmt project' using goland.
    Golangci-lint passed, run 'sudo golangci-lint run' in project root.
    Your new-created file needs to have [apache 
license](https://raw.githubusercontent.com/dubbogo/resources/master/tools/license/license.txt)
 at the top, like other existed file does.
    All integration test passed. You can run integration test locally (with 
docker env). Clone our 
[dubbo-go-samples](https://github.com/apache/dubbo-go-samples) project and 
replace the go.mod to your dubbo-go, and run 'sudo sh 
start_integration_test.sh' at root of samples projM1 Slice is not Support)


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to