File tree 1 file changed +4
-0
lines changed
google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ public class Subscriber extends AbstractApiService implements SubscriberInterfac
93
93
private static final int MAX_INBOUND_MESSAGE_SIZE =
94
94
20 * 1024 * 1024 ; // 20MB API maximum message size.
95
95
96
+ private static final int MAX_INBOUND_METADATA_SIZE =
97
+ 4 * 1024 * 1024 ; // 4MB API maximum metadata size
98
+
96
99
@ InternalApi static final Duration DEFAULT_MAX_ACK_EXTENSION_PERIOD = Duration .ofMinutes (60 );
97
100
98
101
@ InternalApi
@@ -480,6 +483,7 @@ public static final class Builder {
480
483
private TransportChannelProvider channelProvider =
481
484
SubscriptionAdminSettings .defaultGrpcTransportProviderBuilder ()
482
485
.setMaxInboundMessageSize (MAX_INBOUND_MESSAGE_SIZE )
486
+ .setMaxInboundMetadataSize (MAX_INBOUND_METADATA_SIZE )
483
487
.setKeepAliveTime (Duration .ofMinutes (5 ))
484
488
.build ();
485
489
private HeaderProvider headerProvider = new NoHeaderProvider ();
You can’t perform that action at this time.
0 commit comments