Skip to content

Commit 2ca8fa4

Browse files
committed
add additional-spring-configuration-metadata.json
1 parent c91ca1b commit 2ca8fa4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

grpc-client-spring-boot-starter/src/main/java/net/devh/boot/grpc/client/config/GrpcChannelProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public void setMaxInboundMessageSize(final DataSize maxInboundMessageSize) {
338338

339339
/**
340340
* Sets the maximum size of metadata in bytes allowed to be received.
341-
* If not set ({@code null}) then it will default.The default is implementation-dependent, but is not generally less than 8 KiB and may be unlimited.
341+
* If not set ({@code null}) then it will default to gRPC's default. The default is implementation-dependent, but is not generally less than 8 KiB and may be unlimited.
342342
* If set to {@code -1} then it will use the highest possible limit (not recommended). Integer.MAX_VALUE disables the enforcement.
343343
*
344344
* @return The maximum size of metadata in bytes allowed to be received or null if the default should be used.

grpc-client-spring-boot-starter/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@
9494
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties",
9595
"description": "The maximum message size allowed to be received by the channel.\nIf not set (null) then it will default to gRPC's default.\nIf set to -1 then it will use the highest possible limit (not recommended)."
9696
},
97+
{
98+
"name": "grpc.client.GLOBAL.max-inbound-metadata-size",
99+
"type": "org.springframework.util.unit.DataSize",
100+
"sourceType": "net.devh.boot.grpc.client.config.GrpcChannelProperties",
101+
"description": "the maximum size of metadata in bytes allowed to be received. \nIf not set (null) then it will default to gRPC's default. \nIf set to {@code -1} then it will use the highest possible limit (not recommended)."
102+
},
97103
{
98104
"name": "grpc.client.GLOBAL.negotiation-type",
99105
"type": "net.devh.boot.grpc.client.config.NegotiationType",
@@ -158,4 +164,4 @@
158164
"description": "The path to the trusted certificate collection.\nIf not set (null) it will use the system's default collection (Default).\nThis collection will be used to verify server certificates."
159165
}
160166
]
161-
}
167+
}

0 commit comments

Comments
 (0)