You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/config/GrpcServerProperties.java
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,14 @@ public class GrpcServerProperties {
160
160
@DataSizeUnit(DataUnit.BYTES)
161
161
privateDataSizemaxInboundMessageSize = null;
162
162
163
+
/**
164
+
* The maximum size of metadata allowed to be received. If not set ({@code null}) then
165
+
* {@link GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE gRPC's default} should be used.
166
+
*
167
+
*/
168
+
@DataSizeUnit(DataUnit.BYTES)
169
+
privateDataSizemaxInboundMetadataSize = null;
170
+
163
171
/**
164
172
* Whether gRPC health service is enabled or not. Defaults to {@code true}.
165
173
*
@@ -313,4 +321,14 @@ public void setMaxInboundMessageSize(final DataSize maxInboundMessageSize) {
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/main/java/net/devh/boot/grpc/server/serverfactory/AbstractGrpcServerFactory.java
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -151,6 +151,10 @@ protected void configureLimits(final T builder) {
Copy file name to clipboardExpand all lines: grpc-server-spring-boot-autoconfigure/src/test/java/net/devh/boot/grpc/server/config/GrpcServerPropertiesGivenUnitTest.java
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,8 @@
34
34
@ExtendWith(SpringExtension.class)
35
35
@SpringBootTest(properties = {
36
36
"grpc.server.keepAliveTime=42m",
37
-
"grpc.server.maxInboundMessageSize=5MB"
37
+
"grpc.server.maxInboundMessageSize=5MB",
38
+
"grpc.server.maxInboundMetadataSize=10KB"
38
39
})
39
40
classGrpcServerPropertiesGivenUnitTest {
40
41
@@ -45,6 +46,7 @@ class GrpcServerPropertiesGivenUnitTest {
0 commit comments