grpcFlowControlWindow property

int grpcFlowControlWindow
final

The HTTP/2 flow-control window of the gRPC transport, in bytes: how much the backend may send on the connection, and on each request, before the client acknowledges it. Defaults to defaultGrpcFlowControlWindow (256 KiB); the HTTP/2 default is 64 KiB, which limits large reads on a connection with a long round trip time. Same as grpcFlowControlWindow of the Android and JS SDKs (in JS, Node only). Ignored by the web transport.

Advanced setting. A larger window makes reads of large documents faster, but on a poor connection a large response can hold back the others (head-of-line blocking). Use 65535 for the HTTP/2 default. Must be a positive number of bytes, at most 2147483647; below 65535 only the window of each request is smaller (HTTP/2 does not let the window of the connection shrink below its default).

With another value than 65535 a new connection waits for the backend to acknowledge the window before its first request, about one round trip.

Implementation

final int grpcFlowControlWindow;