Configuration options

Table 1. Optional configuration options
key type default value description

abort-poll-time-expired

boolean

false

Whether to continue retrying after a poll wait timeout expired or not. If a read operation timeouts out and this flag is set to false, the event is logged and the client will retry. Otherwise, an exception is thrown.

heartbeat-period

Duration

PT0S

How often to send a heartbeat (HTTP/2 ping) to check if the connection is still alive. This is useful for long-running, streaming gRPC calls. It is turned off by default but can be enabled by setting the period to a value greater than 0.

init-buffer-size

int

2048

Initial buffer size used to serialize gRPC request payloads. Buffers shall grow according to the payload size, but setting this initial buffer size to a larger value may improve performance for certain applications.

name

string

grpc

Name identifying this client protocol. Defaults to type.

next-request-wait-time

Duration

PT1S

When data has been received from the server but not yet requested by the client (i.e., listener), the implementation will wait for this duration before signaling an error. If data is requested and more data is still in the queue, this time wait restarts until the next request is received. If duration expires, a status of io.grpc.Status.CANCELLED is reported in the call to io.grpc.ClientCall.Listener.onClose(io.grpc.Status, io.grpc.Metadata).

See io.grpc.ClientCall.Listener.request(int)

poll-wait-time

Duration

PT10S

How long to wait for the next HTTP/2 data frame to arrive in underlying stream. Whether this is a fatal error or not is controlled by abortPollTimeExpired().

See io.helidon.common.socket.SocketOptions.readTimeout()