@@ -76,7 +76,6 @@ type ServiceConfig struct {
76
76
NotRegister bool `yaml:"not_register" json:"not_register,omitempty" property:"not_register"`
77
77
ParamSign string `yaml:"param.sign" json:"param.sign,omitempty" property:"param.sign"`
78
78
Tag string `yaml:"tag" json:"tag,omitempty" property:"tag"`
79
- GrpcMaxMessageSize int `default:"4" yaml:"max_message_size" json:"max_message_size,omitempty"`
80
79
TracingKey string `yaml:"tracing-key" json:"tracing-key,omitempty" propertiy:"tracing-key"`
81
80
82
81
RCProtocolsMap map [string ]* ProtocolConfig
@@ -278,6 +277,9 @@ func (s *ServiceConfig) Export() error {
278
277
common .WithMethods (strings .Split (methods , "," )),
279
278
common .WithToken (s .Token ),
280
279
common .WithParamsValue (constant .MetadataTypeKey , s .metadataType ),
280
+ // fix https://github.com/apache/dubbo-go/issues/2176
281
+ common .WithParamsValue (constant .MaxServerSendMsgSize , proto .MaxServerSendMsgSize ),
282
+ common .WithParamsValue (constant .MaxServerRecvMsgSize , proto .MaxServerRecvMsgSize ),
281
283
)
282
284
if len (s .Tag ) > 0 {
283
285
ivkURL .AddParam (constant .Tagkey , s .Tag )
@@ -331,13 +333,13 @@ func (s *ServiceConfig) Export() error {
331
333
return nil
332
334
}
333
335
334
- //setRegistrySubURL set registry sub url is ivkURl
336
+ // setRegistrySubURL set registry sub url is ivkURl
335
337
func setRegistrySubURL (ivkURL * common.URL , regUrl * common.URL ) {
336
338
ivkURL .AddParam (constant .RegistryKey , regUrl .GetParam (constant .RegistryKey , "" ))
337
339
regUrl .SubURL = ivkURL
338
340
}
339
341
340
- //loadProtocol filter protocols by ids
342
+ // loadProtocol filter protocols by ids
341
343
func loadProtocol (protocolIds []string , protocols map [string ]* ProtocolConfig ) []* ProtocolConfig {
342
344
returnProtocols := make ([]* ProtocolConfig , 0 , len (protocols ))
343
345
for _ , v := range protocolIds {
@@ -435,7 +437,6 @@ func (s *ServiceConfig) getUrlMap() url.Values {
435
437
urlMap .Set (constant .RegistryRoleKey , strconv .Itoa (common .PROVIDER ))
436
438
urlMap .Set (constant .ReleaseKey , "dubbo-golang-" + constant .Version )
437
439
urlMap .Set (constant .SideKey , (common .RoleType (common .PROVIDER )).Role ())
438
- urlMap .Set (constant .MessageSizeKey , strconv .Itoa (s .GrpcMaxMessageSize ))
439
440
// todo: move
440
441
urlMap .Set (constant .SerializationKey , s .Serialization )
441
442
// application config info
0 commit comments