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
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -164,6 +164,7 @@ public class GrpcServerProperties {
164
164
* The maximum size of metadata allowed to be received. If not set ({@code null}) then
165
165
* {@link GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE gRPC's default} should be used.
166
166
*
167
+
* @return The maximum metadata size allowed.
167
168
*/
168
169
@DataSizeUnit(DataUnit.BYTES)
169
170
privateDataSizemaxInboundMetadataSize = null;
@@ -321,6 +322,16 @@ public void setMaxInboundMessageSize(final DataSize maxInboundMessageSize) {
321
322
}
322
323
}
323
324
325
+
/**
326
+
* Sets the maximum metadata size allowed to be received by the server. If not set ({@code null}) then it will
327
+
* default to {@link GrpcUtil#DEFAULT_MAX_HEADER_LIST_SIZE gRPC's default}. If set to {@code -1} then it will use the
328
+
* highest possible limit (not recommended).
329
+
*
330
+
* @param maxInboundMetadataSize The new maximum size allowed for incoming metadata. {@code -1} for max possible.
0 commit comments