grpc-ecosystem / grpc-spring

Spring Boot starter module for gRPC framework.
https://grpc-ecosystem.github.io/grpc-spring/
Apache License 2.0
3.49k stars 819 forks source link

Fix setting maxInboundMetadataSize from GLOBAL #1093

Closed o-shevchenko closed 5 months ago

o-shevchenko commented 5 months ago

maxInboundMetadataSize works as expected after https://github.com/grpc-ecosystem/grpc-spring/pull/1064 if you set it for the needed channel. But it was missed for GLOBAL in copyDefaultsFrom method

grpc:
  client:
    GLOBAL:
      max-inbound-metadata-size: 16384 # value here is not copied to other services
    service:
      address: service:6565
      max-inbound-metadata-size: 16384 # you have to specify value for service even it's already present for  GLOBAL