Macros
Grpc_arg_keys

Channel argument keys. More...

Macros

#define GRPC_ARG_ALLOW_REUSEPORT   "grpc.so_reuseport"
 
#define GRPC_ARG_AUTHORIZATION_POLICY_PROVIDER   "grpc.authorization_policy_provider"
 
#define GRPC_ARG_CHANNEL_ID   "grpc.channel_id"
 
#define GRPC_ARG_CHANNEL_POOL_DOMAIN   "grpc.channel_pooling_domain"
 
#define GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS   "grpc.client_idle_timeout_ms"
 
#define GRPC_ARG_DEFAULT_AUTHORITY   "grpc.default_authority"
 
#define GRPC_ARG_DISABLE_CLIENT_AUTHORITY_FILTER   "grpc.disable_client_authority_filter"
 
#define GRPC_ARG_DNS_ARES_QUERY_TIMEOUT_MS   "grpc.dns_ares_query_timeout"
 
#define GRPC_ARG_DNS_ENABLE_SRV_QUERIES   "grpc.dns_enable_srv_queries"
 
#define GRPC_ARG_DNS_MIN_TIME_BETWEEN_RESOLUTIONS_MS   "grpc.dns_min_time_between_resolutions_ms"
 
#define GRPC_ARG_ENABLE_CENSUS   "grpc.census"
 
#define GRPC_ARG_ENABLE_CHANNELZ   "grpc.enable_channelz"
 
#define GRPC_ARG_ENABLE_DEADLINE_CHECKS   "grpc.enable_deadline_checking"
 
#define GRPC_ARG_ENABLE_HTTP_PROXY   "grpc.enable_http_proxy"
 
#define GRPC_ARG_ENABLE_LOAD_REPORTING   "grpc.loadreporting"
 
#define GRPC_ARG_ENABLE_PER_MESSAGE_COMPRESSION   "grpc.per_message_compression"
 
#define GRPC_ARG_ENABLE_PER_MESSAGE_DECOMPRESSION   "grpc.per_message_decompression"
 
#define GRPC_ARG_ENABLE_RETRIES   "grpc.enable_retries"
 
#define GRPC_ARG_EXPAND_WILDCARD_ADDRS   "grpc.expand_wildcard_addrs"
 
#define GRPC_ARG_EXPERIMENTAL_ENABLE_HEDGING   "grpc.experimental.enable_hedging"
 
#define GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS   "grpc.grpclb_call_timeout_ms"
 
#define GRPC_ARG_GRPCLB_FALLBACK_TIMEOUT_MS   "grpc.grpclb_fallback_timeout_ms"
 
#define GRPC_ARG_HTTP2_BDP_PROBE   "grpc.http2.bdp_probe"
 
#define GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY   "grpc.http2.true_binary"
 
#define GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER   "grpc.http2.hpack_table_size.decoder"
 
#define GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_ENCODER   "grpc.http2.hpack_table_size.encoder"
 
#define GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER   "grpc.http2.initial_sequence_number"
 
#define GRPC_ARG_HTTP2_MAX_FRAME_SIZE   "grpc.http2.max_frame_size"
 
#define GRPC_ARG_HTTP2_MAX_PING_STRIKES   "grpc.http2.max_ping_strikes"
 
#define GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA   "grpc.http2.max_pings_without_data"
 
#define GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS   "grpc.http2.min_ping_interval_without_data_ms"
 
#define GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS   "grpc.http2.min_time_between_pings_ms"
 
#define GRPC_ARG_HTTP2_SCHEME   "grpc.http2_scheme"
 
#define GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES   "grpc.http2.lookahead_bytes"
 
#define GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE   "grpc.http2.write_buffer_size"
 
#define GRPC_ARG_HTTP_PROXY   "grpc.http_proxy"
 
#define GRPC_ARG_INHIBIT_HEALTH_CHECKING   "grpc.inhibit_health_checking"
 
#define GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS   "grpc.initial_reconnect_backoff_ms"
 
#define GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS   "grpc.keepalive_permit_without_calls"
 
#define GRPC_ARG_KEEPALIVE_TIME_MS   "grpc.keepalive_time_ms"
 
#define GRPC_ARG_KEEPALIVE_TIMEOUT_MS   "grpc.keepalive_timeout_ms"
 
#define GRPC_ARG_LB_POLICY_NAME   "grpc.lb_policy_name"
 
#define GRPC_ARG_MAX_CHANNEL_TRACE_EVENT_MEMORY_PER_NODE   "grpc.max_channel_trace_event_memory_per_node"
 
#define GRPC_ARG_MAX_CONCURRENT_STREAMS   "grpc.max_concurrent_streams"
 
#define GRPC_ARG_MAX_CONNECTION_AGE_GRACE_MS   "grpc.max_connection_age_grace_ms"
 
#define GRPC_ARG_MAX_CONNECTION_AGE_MS   "grpc.max_connection_age_ms"
 
#define GRPC_ARG_MAX_CONNECTION_IDLE_MS   "grpc.max_connection_idle_ms"
 
#define GRPC_ARG_MAX_MESSAGE_LENGTH   GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH
 
#define GRPC_ARG_MAX_METADATA_SIZE   "grpc.max_metadata_size"
 
#define GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH   "grpc.max_receive_message_length"
 
#define GRPC_ARG_MAX_RECONNECT_BACKOFF_MS   "grpc.max_reconnect_backoff_ms"
 
#define GRPC_ARG_MAX_SEND_MESSAGE_LENGTH   "grpc.max_send_message_length"
 
#define GRPC_ARG_MIN_RECONNECT_BACKOFF_MS   "grpc.min_reconnect_backoff_ms"
 
#define GRPC_ARG_MINIMAL_STACK   "grpc.minimal_stack"
 
#define GRPC_ARG_MOBILE_LOG_CONTEXT   "grpc.mobile_log_context"
 
#define GRPC_ARG_OPTIMIZATION_TARGET   "grpc.optimization_target"
 
#define GRPC_ARG_PER_RPC_RETRY_BUFFER_SIZE   "grpc.per_rpc_retry_buffer_size"
 
#define GRPC_ARG_PRIMARY_USER_AGENT_STRING   "grpc.primary_user_agent"
 
#define GRPC_ARG_PRIORITY_FAILOVER_TIMEOUT_MS   "grpc.priority_failover_timeout_ms"
 
#define GRPC_ARG_RESOURCE_QUOTA   "grpc.resource_quota"
 
#define GRPC_ARG_SECONDARY_USER_AGENT_STRING   "grpc.secondary_user_agent"
 
#define GRPC_ARG_SERVER_CONFIG_CHANGE_DRAIN_GRACE_TIME_MS   "grpc.experimental.server_config_change_drain_grace_time_ms"
 
#define GRPC_ARG_SERVER_HANDSHAKE_TIMEOUT_MS   "grpc.server_handshake_timeout_ms"
 
#define GRPC_ARG_SERVICE_CONFIG   "grpc.service_config"
 
#define GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION   "grpc.service_config_disable_resolution"
 
#define GRPC_ARG_SOCKET_FACTORY   "grpc.socket_factory"
 
#define GRPC_ARG_SOCKET_MUTATOR   "grpc.socket_mutator"
 
#define GRPC_ARG_SURFACE_USER_AGENT   "grpc.surface_user_agent"
 
#define GRPC_ARG_TCP_MAX_READ_CHUNK_SIZE   "grpc.experimental.tcp_max_read_chunk_size"
 
#define GRPC_ARG_TCP_MIN_READ_CHUNK_SIZE   "grpc.experimental.tcp_min_read_chunk_size"
 
#define GRPC_ARG_TCP_READ_CHUNK_SIZE   "grpc.experimental.tcp_read_chunk_size"
 
#define GRPC_ARG_TCP_TX_ZEROCOPY_ENABLED   "grpc.experimental.tcp_tx_zerocopy_enabled"
 
#define GRPC_ARG_TCP_TX_ZEROCOPY_MAX_SIMULT_SENDS   "grpc.experimental.tcp_tx_zerocopy_max_simultaneous_sends"
 
#define GRPC_ARG_TCP_TX_ZEROCOPY_SEND_BYTES_THRESHOLD   "grpc.experimental.tcp_tx_zerocopy_send_bytes_threshold"
 
#define GRPC_ARG_TEST_ONLY_DO_NOT_USE_IN_PROD_XDS_BOOTSTRAP_CONFIG   "grpc.TEST_ONLY_DO_NOT_USE_IN_PROD.xds_bootstrap_config"
 
#define GRPC_ARG_TSI_MAX_FRAME_SIZE   "grpc.tsi.max_frame_size"
 
#define GRPC_ARG_USE_CRONET_PACKET_COALESCING   "grpc.use_cronet_packet_coalescing"
 
#define GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL   "grpc.use_local_subchannel_pool"
 
#define GRPC_ARG_WORKAROUND_CRONET_COMPRESSION   "grpc.workaround.cronet_compression"
 
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM   "grpc.default_compression_algorithm"
 
#define GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL   "grpc.default_compression_level"
 
#define GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET   "grpc.compression_enabled_algorithms_bitset"
 
#define GRPC_SSL_SESSION_CACHE_ARG   "grpc.ssl_session_cache"
 
#define GRPC_SSL_TARGET_NAME_OVERRIDE_ARG   "grpc.ssl_target_name_override"
 
#define GRPC_TCP_DEFAULT_READ_SLICE_SIZE   8192
 

Detailed Description

Channel argument keys.

To be used in channel arguments.

Macro Definition Documentation

◆ GRPC_ARG_ALLOW_REUSEPORT

#define GRPC_ARG_ALLOW_REUSEPORT   "grpc.so_reuseport"

If non-zero, allow the use of SO_REUSEPORT if it's available (default 1)

Definition at line 295 of file grpc_types.h.

◆ GRPC_ARG_AUTHORIZATION_POLICY_PROVIDER

#define GRPC_ARG_AUTHORIZATION_POLICY_PROVIDER   "grpc.authorization_policy_provider"

Channel argument for grpc_authorization_policy_provider. If present, enables gRPC authorization check.

Definition at line 450 of file grpc_types.h.

◆ GRPC_ARG_CHANNEL_ID

#define GRPC_ARG_CHANNEL_ID   "grpc.channel_id"

gRPC Objective-C channel pooling id.

Definition at line 447 of file grpc_types.h.

◆ GRPC_ARG_CHANNEL_POOL_DOMAIN

#define GRPC_ARG_CHANNEL_POOL_DOMAIN   "grpc.channel_pooling_domain"

gRPC Objective-C channel pooling domain string.

Definition at line 445 of file grpc_types.h.

◆ GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS

#define GRPC_ARG_CLIENT_IDLE_TIMEOUT_MS   "grpc.client_idle_timeout_ms"

Timeout after the last RPC finishes on the client channel at which the channel goes back into IDLE state. Int valued, milliseconds. INT_MAX means unlimited. The default value is 30 minutes and the min value is 1 second.

Definition at line 173 of file grpc_types.h.

◆ GRPC_ARG_DEFAULT_AUTHORITY

#define GRPC_ARG_DEFAULT_AUTHORITY   "grpc.default_authority"

Default authority to pass if none specified on call construction. A string.

Definition at line 251 of file grpc_types.h.

◆ GRPC_ARG_DISABLE_CLIENT_AUTHORITY_FILTER

#define GRPC_ARG_DISABLE_CLIENT_AUTHORITY_FILTER   "grpc.disable_client_authority_filter"

If non-zero, client authority filter is disabled for the channel

Definition at line 412 of file grpc_types.h.

◆ GRPC_ARG_DNS_ARES_QUERY_TIMEOUT_MS

#define GRPC_ARG_DNS_ARES_QUERY_TIMEOUT_MS   "grpc.dns_ares_query_timeout"

If set, determines an upper bound on the number of milliseconds that the c-ares based DNS resolver will wait on queries before cancelling them. The default value is 120,000. Setting this to "0" will disable the overall timeout entirely. Note that this doesn't include internal c-ares timeouts/backoff/retry logic, and so the actual DNS resolution may time out sooner than the value specified here.

Definition at line 440 of file grpc_types.h.

◆ GRPC_ARG_DNS_ENABLE_SRV_QUERIES

#define GRPC_ARG_DNS_ENABLE_SRV_QUERIES   "grpc.dns_enable_srv_queries"

If enabled, the channel's DNS resolver queries for SRV records. This is useful only when using the "grpclb" load balancing policy, as described in the following documents: https://github.com/grpc/proposal/blob/master/A5-grpclb-in-dns.md https://github.com/grpc/proposal/blob/master/A24-lb-policy-config.md https://github.com/grpc/proposal/blob/master/A26-grpclb-selection.md Note that this works only with the "ares" DNS resolver; it isn't supported by the "native" DNS resolver.

Definition at line 433 of file grpc_types.h.

◆ GRPC_ARG_DNS_MIN_TIME_BETWEEN_RESOLUTIONS_MS

#define GRPC_ARG_DNS_MIN_TIME_BETWEEN_RESOLUTIONS_MS   "grpc.dns_min_time_between_resolutions_ms"

Minimum amount of time between DNS resolutions, in ms

Definition at line 266 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_CENSUS

#define GRPC_ARG_ENABLE_CENSUS   "grpc.census"

If non-zero, enable census for tracing and stats collection.

Definition at line 142 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_CHANNELZ

#define GRPC_ARG_ENABLE_CHANNELZ   "grpc.enable_channelz"

If non-zero, gRPC library will track stats and information at at per channel level. Disabling channelz naturally disables channel tracing. The default is for channelz to be enabled.

Definition at line 323 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_DEADLINE_CHECKS

#define GRPC_ARG_ENABLE_DEADLINE_CHECKS   "grpc.enable_deadline_checking"

Enable/disable support for deadline checking. Defaults to 1, unless GRPC_ARG_MINIMAL_STACK is enabled, in which case it defaults to 0

Definition at line 184 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_HTTP_PROXY

#define GRPC_ARG_ENABLE_HTTP_PROXY   "grpc.enable_http_proxy"

If set to zero, disables use of http proxies. Enabled by default.

Definition at line 415 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_LOAD_REPORTING

#define GRPC_ARG_ENABLE_LOAD_REPORTING   "grpc.loadreporting"

If non-zero, enable load reporting.

Definition at line 144 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_PER_MESSAGE_COMPRESSION

#define GRPC_ARG_ENABLE_PER_MESSAGE_COMPRESSION   "grpc.per_message_compression"

Enable/disable support for per-message compression. Defaults to 1, unless GRPC_ARG_MINIMAL_STACK is enabled, in which case it defaults to 0.

Definition at line 176 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_PER_MESSAGE_DECOMPRESSION

#define GRPC_ARG_ENABLE_PER_MESSAGE_DECOMPRESSION   "grpc.per_message_decompression"

Experimental Arg. Enable/disable support for per-message decompression. Defaults to 1. If disabled, decompression will not be performed and the application will see the compressed message in the byte buffer.

Definition at line 180 of file grpc_types.h.

◆ GRPC_ARG_ENABLE_RETRIES

#define GRPC_ARG_ENABLE_RETRIES   "grpc.enable_retries"

Enables retry functionality. Defaults to true. When enabled, transparent retries will be performed as appropriate, and configurable retries are enabled when they are configured via the service config. For details, see: https://github.com/grpc/proposal/blob/master/A6-client-retries.md NOTE: Hedging functionality is not yet implemented, so those fields in the service config will currently be ignored. See also the GRPC_ARG_EXPERIMENTAL_ENABLE_HEDGING arg below.

Definition at line 396 of file grpc_types.h.

◆ GRPC_ARG_EXPAND_WILDCARD_ADDRS

#define GRPC_ARG_EXPAND_WILDCARD_ADDRS   "grpc.expand_wildcard_addrs"

If non-zero, expand wildcard addresses to a list of local addresses.

Definition at line 301 of file grpc_types.h.

◆ GRPC_ARG_EXPERIMENTAL_ENABLE_HEDGING

#define GRPC_ARG_EXPERIMENTAL_ENABLE_HEDGING   "grpc.experimental.enable_hedging"

Enables hedging functionality, as described in: https://github.com/grpc/proposal/blob/master/A6-client-retries.md Default is currently false, since this functionality is not yet fully implemented. NOTE: This channel arg is experimental and will eventually be removed. Once hedging functionality has been implemented and proves stable, this arg will be removed, and the hedging functionality will be enabled via the GRPC_ARG_ENABLE_RETRIES arg above.

Definition at line 405 of file grpc_types.h.

◆ GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS

#define GRPC_ARG_GRPCLB_CALL_TIMEOUT_MS   "grpc.grpclb_call_timeout_ms"

Definition at line 355 of file grpc_types.h.

◆ GRPC_ARG_GRPCLB_FALLBACK_TIMEOUT_MS

#define GRPC_ARG_GRPCLB_FALLBACK_TIMEOUT_MS   "grpc.grpclb_fallback_timeout_ms"

Definition at line 370 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_BDP_PROBE

#define GRPC_ARG_HTTP2_BDP_PROBE   "grpc.http2.bdp_probe"

Should BDP probing be performed?

Definition at line 204 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY

#define GRPC_ARG_HTTP2_ENABLE_TRUE_BINARY   "grpc.http2.true_binary"

Should we allow receipt of true-binary data on http2 connections? Defaults to on (1)

Definition at line 237 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER

#define GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_DECODER   "grpc.http2.hpack_table_size.decoder"

How much memory to use for hpack decoding. Int valued, bytes.

Definition at line 194 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_ENCODER

#define GRPC_ARG_HTTP2_HPACK_TABLE_SIZE_ENCODER   "grpc.http2.hpack_table_size.encoder"

How much memory to use for hpack encoding. Int valued, bytes.

Definition at line 197 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER

#define GRPC_ARG_HTTP2_INITIAL_SEQUENCE_NUMBER   "grpc.http2.initial_sequence_number"

Initial stream ID for http2 transports. Int valued.

Definition at line 186 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_MAX_FRAME_SIZE

#define GRPC_ARG_HTTP2_MAX_FRAME_SIZE   "grpc.http2.max_frame_size"

How big a frame are we willing to receive via HTTP2. Min 16384, max 16777215. Larger values give lower CPU usage for large messages, but more head of line blocking for small messages.

Definition at line 202 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_MAX_PING_STRIKES

#define GRPC_ARG_HTTP2_MAX_PING_STRIKES   "grpc.http2.max_ping_strikes"

How many misbehaving pings the server can bear before sending goaway and closing the transport? (0 indicates that the server can bear an infinite number of misbehaving pings)

Definition at line 231 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA

#define GRPC_ARG_HTTP2_MAX_PINGS_WITHOUT_DATA   "grpc.http2.max_pings_without_data"

How many pings can the client send before needing to send a data/header frame? (0 indicates that an infinite number of pings can be sent without sending a data frame or header frame)

Definition at line 226 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS

#define GRPC_ARG_HTTP2_MIN_RECV_PING_INTERVAL_WITHOUT_DATA_MS   "grpc.http2.min_ping_interval_without_data_ms"

Minimum allowed time between a server receiving successive ping frames without sending any data/header frame. Int valued, milliseconds

Definition at line 219 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS

#define GRPC_ARG_HTTP2_MIN_SENT_PING_INTERVAL_WITHOUT_DATA_MS   "grpc.http2.min_time_between_pings_ms"

(DEPRECATED) Does not have any effect. Earlier, this arg configured the minimum time between successive ping frames without receiving any data/header frame, Int valued, milliseconds. This put unnecessary constraints on the configuration of keepalive pings, requiring users to set this channel arg along with GRPC_ARG_KEEPALIVE_TIME_MS. This arg also limited the activity of the other source of pings in gRPC Core - BDP pings, but BDP pings are only sent when there is receive-side data activity, making this arg unuseful for BDP pings too.

Definition at line 214 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_SCHEME

#define GRPC_ARG_HTTP2_SCHEME   "grpc.http2_scheme"

Channel arg to override the http2 :scheme header

Definition at line 222 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES

#define GRPC_ARG_HTTP2_STREAM_LOOKAHEAD_BYTES   "grpc.http2.lookahead_bytes"

Amount to read ahead on individual streams. Defaults to 64kb, larger values can help throughput on high-latency connections. NOTE: at some point we'd like to auto-tune this, and this parameter will become a no-op. Int valued, bytes.

Definition at line 192 of file grpc_types.h.

◆ GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE

#define GRPC_ARG_HTTP2_WRITE_BUFFER_SIZE   "grpc.http2.write_buffer_size"

How much data are we willing to queue up per stream if GRPC_WRITE_BUFFER_HINT is set? This is an upper bound

Definition at line 234 of file grpc_types.h.

◆ GRPC_ARG_HTTP_PROXY

#define GRPC_ARG_HTTP_PROXY   "grpc.http_proxy"

Channel arg to set http proxy per channel. If set, the channel arg value will be prefered over the envrionment variable settings.

Definition at line 418 of file grpc_types.h.

◆ GRPC_ARG_INHIBIT_HEALTH_CHECKING

#define GRPC_ARG_INHIBIT_HEALTH_CHECKING   "grpc.inhibit_health_checking"

If set, inhibits health checking (which may be enabled via the service config.)

Definition at line 424 of file grpc_types.h.

◆ GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS

#define GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS   "grpc.initial_reconnect_backoff_ms"

The time between the first and second connection attempts, in ms

Definition at line 263 of file grpc_types.h.

◆ GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS

#define GRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLS   "grpc.keepalive_permit_without_calls"

Is it permissible to send keepalive pings from the client without any outstanding streams. Int valued, 0(false)/1(true).

Definition at line 247 of file grpc_types.h.

◆ GRPC_ARG_KEEPALIVE_TIME_MS

#define GRPC_ARG_KEEPALIVE_TIME_MS   "grpc.keepalive_time_ms"

After a duration of this time the client/server pings its peer to see if the transport is still alive. Int valued, milliseconds.

Definition at line 240 of file grpc_types.h.

◆ GRPC_ARG_KEEPALIVE_TIMEOUT_MS

#define GRPC_ARG_KEEPALIVE_TIMEOUT_MS   "grpc.keepalive_timeout_ms"

After waiting for a duration of this time, if the keepalive ping sender does not receive the ping ack, it will close the transport. Int valued, milliseconds.

Definition at line 244 of file grpc_types.h.

◆ GRPC_ARG_LB_POLICY_NAME

#define GRPC_ARG_LB_POLICY_NAME   "grpc.lb_policy_name"

LB policy name.

Definition at line 309 of file grpc_types.h.

◆ GRPC_ARG_MAX_CHANNEL_TRACE_EVENT_MEMORY_PER_NODE

#define GRPC_ARG_MAX_CHANNEL_TRACE_EVENT_MEMORY_PER_NODE   "grpc.max_channel_trace_event_memory_per_node"

The maximum amount of memory used by trace events per channel trace node. Once the maximum is reached, subsequent events will evict the oldest events from the buffer. The unit for this knob is bytes. Setting it to zero causes channel tracing to be disabled.

Definition at line 318 of file grpc_types.h.

◆ GRPC_ARG_MAX_CONCURRENT_STREAMS

#define GRPC_ARG_MAX_CONCURRENT_STREAMS   "grpc.max_concurrent_streams"

Maximum number of concurrent incoming streams to allow on a http2 connection. Int valued.

Definition at line 150 of file grpc_types.h.

◆ GRPC_ARG_MAX_CONNECTION_AGE_GRACE_MS

#define GRPC_ARG_MAX_CONNECTION_AGE_GRACE_MS   "grpc.max_connection_age_grace_ms"

Grace period after the channel reaches its max age. Int valued, milliseconds. INT_MAX means unlimited.

Definition at line 169 of file grpc_types.h.

◆ GRPC_ARG_MAX_CONNECTION_AGE_MS

#define GRPC_ARG_MAX_CONNECTION_AGE_MS   "grpc.max_connection_age_ms"

Maximum time that a channel may exist. Int valued, milliseconds. INT_MAX means unlimited.

Definition at line 166 of file grpc_types.h.

◆ GRPC_ARG_MAX_CONNECTION_IDLE_MS

#define GRPC_ARG_MAX_CONNECTION_IDLE_MS   "grpc.max_connection_idle_ms"

Maximum time that a channel may have no outstanding rpcs, after which the server will close the connection. Int valued, milliseconds. INT_MAX means unlimited.

Definition at line 163 of file grpc_types.h.

◆ GRPC_ARG_MAX_MESSAGE_LENGTH

#define GRPC_ARG_MAX_MESSAGE_LENGTH   GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH
Deprecated:
For backward compatibility. Use GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH instead.

Definition at line 156 of file grpc_types.h.

◆ GRPC_ARG_MAX_METADATA_SIZE

#define GRPC_ARG_MAX_METADATA_SIZE   "grpc.max_metadata_size"

Maximum metadata size, in bytes. Note this limit applies to the max sum of all metadata key-value entries in a batch of headers.

Definition at line 293 of file grpc_types.h.

◆ GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH

#define GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH   "grpc.max_receive_message_length"

Maximum message length that the channel can receive. Int valued, bytes. -1 means unlimited.

Definition at line 153 of file grpc_types.h.

◆ GRPC_ARG_MAX_RECONNECT_BACKOFF_MS

#define GRPC_ARG_MAX_RECONNECT_BACKOFF_MS   "grpc.max_reconnect_backoff_ms"

The maximum time between subsequent connection attempts, in ms

Definition at line 261 of file grpc_types.h.

◆ GRPC_ARG_MAX_SEND_MESSAGE_LENGTH

#define GRPC_ARG_MAX_SEND_MESSAGE_LENGTH   "grpc.max_send_message_length"

Maximum message length that the channel can send. Int valued, bytes. -1 means unlimited.

Definition at line 159 of file grpc_types.h.

◆ GRPC_ARG_MIN_RECONNECT_BACKOFF_MS

#define GRPC_ARG_MIN_RECONNECT_BACKOFF_MS   "grpc.min_reconnect_backoff_ms"

The minimum time between subsequent connection attempts, in ms

Definition at line 259 of file grpc_types.h.

◆ GRPC_ARG_MINIMAL_STACK

#define GRPC_ARG_MINIMAL_STACK   "grpc.minimal_stack"

Request that optional features default to off (regardless of what they usually default to) - to enable tight control over what gets enabled

Definition at line 147 of file grpc_types.h.

◆ GRPC_ARG_MOBILE_LOG_CONTEXT

#define GRPC_ARG_MOBILE_LOG_CONTEXT   "grpc.mobile_log_context"

Channel arg that carries the bridged objective c object for custom metrics logging filter.

Definition at line 410 of file grpc_types.h.

◆ GRPC_ARG_OPTIMIZATION_TARGET

#define GRPC_ARG_OPTIMIZATION_TARGET   "grpc.optimization_target"

String defining the optimization target for a channel. Can be: "latency" - attempt to minimize latency at the cost of throughput "blend" - try to balance latency and throughput "throughput" - attempt to maximize throughput at the expense of latency Defaults to "blend". In the current implementation "blend" is equivalent to "latency".

Definition at line 386 of file grpc_types.h.

◆ GRPC_ARG_PER_RPC_RETRY_BUFFER_SIZE

#define GRPC_ARG_PER_RPC_RETRY_BUFFER_SIZE   "grpc.per_rpc_retry_buffer_size"

Per-RPC retry buffer size, in bytes. Default is 256 KiB.

Definition at line 407 of file grpc_types.h.

◆ GRPC_ARG_PRIMARY_USER_AGENT_STRING

#define GRPC_ARG_PRIMARY_USER_AGENT_STRING   "grpc.primary_user_agent"

Primary user agent: goes at the start of the user-agent metadata sent on each request. A string.

Definition at line 254 of file grpc_types.h.

◆ GRPC_ARG_PRIORITY_FAILOVER_TIMEOUT_MS

#define GRPC_ARG_PRIORITY_FAILOVER_TIMEOUT_MS   "grpc.priority_failover_timeout_ms"

Definition at line 374 of file grpc_types.h.

◆ GRPC_ARG_RESOURCE_QUOTA

#define GRPC_ARG_RESOURCE_QUOTA   "grpc.resource_quota"

If non-zero, a pointer to a buffer pool (a pointer of type grpc_resource_quota*). (use grpc_resource_quota_arg_vtable() to fetch an appropriate pointer arg vtable)

Definition at line 299 of file grpc_types.h.

◆ GRPC_ARG_SECONDARY_USER_AGENT_STRING

#define GRPC_ARG_SECONDARY_USER_AGENT_STRING   "grpc.secondary_user_agent"

Secondary user agent: goes at the end of the user-agent metadata sent on each request. A string.

Definition at line 257 of file grpc_types.h.

◆ GRPC_ARG_SERVER_CONFIG_CHANGE_DRAIN_GRACE_TIME_MS

#define GRPC_ARG_SERVER_CONFIG_CHANGE_DRAIN_GRACE_TIME_MS   "grpc.experimental.server_config_change_drain_grace_time_ms"

EXPERIMENTAL. Updates to a server's configuration from a config fetcher (for example, listener updates from xDS) cause all older connections to be gracefully shut down (i.e., "drained") with a grace period configured by this channel arg. Int valued, milliseconds. Defaults to 10 minutes.

Definition at line 456 of file grpc_types.h.

◆ GRPC_ARG_SERVER_HANDSHAKE_TIMEOUT_MS

#define GRPC_ARG_SERVER_HANDSHAKE_TIMEOUT_MS   "grpc.server_handshake_timeout_ms"

The timeout used on servers for finishing handshaking on an incoming connection. Defaults to 120 seconds.

Definition at line 270 of file grpc_types.h.

◆ GRPC_ARG_SERVICE_CONFIG

#define GRPC_ARG_SERVICE_CONFIG   "grpc.service_config"

Service config data in JSON form. This value will be ignored if the name resolver returns a service config.

Definition at line 304 of file grpc_types.h.

◆ GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION

#define GRPC_ARG_SERVICE_CONFIG_DISABLE_RESOLUTION   "grpc.service_config_disable_resolution"

Disable looking up the service config via the name resolver.

Definition at line 306 of file grpc_types.h.

◆ GRPC_ARG_SOCKET_FACTORY

#define GRPC_ARG_SOCKET_FACTORY   "grpc.socket_factory"

The grpc_socket_factory instance to create and bind sockets. A pointer.

Definition at line 313 of file grpc_types.h.

◆ GRPC_ARG_SOCKET_MUTATOR

#define GRPC_ARG_SOCKET_MUTATOR   "grpc.socket_mutator"

The grpc_socket_mutator instance that set the socket options. A pointer.

Definition at line 311 of file grpc_types.h.

◆ GRPC_ARG_SURFACE_USER_AGENT

#define GRPC_ARG_SURFACE_USER_AGENT   "grpc.surface_user_agent"

If set to non zero, surfaces the user agent string to the server. User agent is surfaced by default.

Definition at line 421 of file grpc_types.h.

◆ GRPC_ARG_TCP_MAX_READ_CHUNK_SIZE

#define GRPC_ARG_TCP_MAX_READ_CHUNK_SIZE   "grpc.experimental.tcp_max_read_chunk_size"

Definition at line 337 of file grpc_types.h.

◆ GRPC_ARG_TCP_MIN_READ_CHUNK_SIZE

#define GRPC_ARG_TCP_MIN_READ_CHUNK_SIZE   "grpc.experimental.tcp_min_read_chunk_size"

Definition at line 335 of file grpc_types.h.

◆ GRPC_ARG_TCP_READ_CHUNK_SIZE

#define GRPC_ARG_TCP_READ_CHUNK_SIZE   "grpc.experimental.tcp_read_chunk_size"

Channel arg (integer) setting how large a slice to try and read from the wire each time recvmsg (or equivalent) is called

Definition at line 330 of file grpc_types.h.

◆ GRPC_ARG_TCP_TX_ZEROCOPY_ENABLED

#define GRPC_ARG_TCP_TX_ZEROCOPY_ENABLED   "grpc.experimental.tcp_tx_zerocopy_enabled"

Definition at line 341 of file grpc_types.h.

◆ GRPC_ARG_TCP_TX_ZEROCOPY_MAX_SIMULT_SENDS

#define GRPC_ARG_TCP_TX_ZEROCOPY_MAX_SIMULT_SENDS   "grpc.experimental.tcp_tx_zerocopy_max_simultaneous_sends"

Definition at line 351 of file grpc_types.h.

◆ GRPC_ARG_TCP_TX_ZEROCOPY_SEND_BYTES_THRESHOLD

#define GRPC_ARG_TCP_TX_ZEROCOPY_SEND_BYTES_THRESHOLD   "grpc.experimental.tcp_tx_zerocopy_send_bytes_threshold"

Definition at line 345 of file grpc_types.h.

◆ GRPC_ARG_TEST_ONLY_DO_NOT_USE_IN_PROD_XDS_BOOTSTRAP_CONFIG

#define GRPC_ARG_TEST_ONLY_DO_NOT_USE_IN_PROD_XDS_BOOTSTRAP_CONFIG   "grpc.TEST_ONLY_DO_NOT_USE_IN_PROD.xds_bootstrap_config"

Definition at line 365 of file grpc_types.h.

◆ GRPC_ARG_TSI_MAX_FRAME_SIZE

#define GRPC_ARG_TSI_MAX_FRAME_SIZE   "grpc.tsi.max_frame_size"

If non-zero, it will determine the maximum frame size used by TSI's frame protector.

NOTE: Be aware that using a large "max_frame_size" is memory inefficient for non-zerocopy protectors. Also, increasing this value above 1MiB can break old binaries that don't support larger than 1MiB frame size.

Definition at line 290 of file grpc_types.h.

◆ GRPC_ARG_USE_CRONET_PACKET_COALESCING

#define GRPC_ARG_USE_CRONET_PACKET_COALESCING   "grpc.use_cronet_packet_coalescing"

If non-zero, Cronet transport will coalesce packets to fewer frames when possible.

Definition at line 326 of file grpc_types.h.

◆ GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL

#define GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL   "grpc.use_local_subchannel_pool"

If set, uses a local subchannel pool within the channel. Otherwise, uses the global subchannel pool.

Definition at line 443 of file grpc_types.h.

◆ GRPC_ARG_WORKAROUND_CRONET_COMPRESSION

#define GRPC_ARG_WORKAROUND_CRONET_COMPRESSION   "grpc.workaround.cronet_compression"

If non-zero, grpc server's cronet compression workaround will be enabled

Definition at line 377 of file grpc_types.h.

◆ GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM

#define GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM   "grpc.default_compression_algorithm"

Default compression algorithm for the channel. Its value is an int from the grpc_compression_algorithm enum.

Definition at line 42 of file compression_types.h.

◆ GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL

#define GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL   "grpc.default_compression_level"

Default compression level for the channel. Its value is an int from the grpc_compression_level enum.

Definition at line 46 of file compression_types.h.

◆ GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET

#define GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET   "grpc.compression_enabled_algorithms_bitset"

Compression algorithms supported by the channel. Its value is a bitset (an int). Bits correspond to algorithms in grpc_compression_algorithm. For example, its LSB corresponds to GRPC_COMPRESS_NONE, the next bit to GRPC_COMPRESS_DEFLATE, etc. Unset bits disable support for the algorithm. By default all algorithms are supported. It's not possible to disable GRPC_COMPRESS_NONE (the attempt will be ignored).

Definition at line 54 of file compression_types.h.

◆ GRPC_SSL_SESSION_CACHE_ARG

#define GRPC_SSL_SESSION_CACHE_ARG   "grpc.ssl_session_cache"

If non-zero, a pointer to a session cache (a pointer of type grpc_ssl_session_cache*). (use grpc_ssl_session_cache_arg_vtable() to fetch an appropriate pointer arg vtable)

Definition at line 282 of file grpc_types.h.

◆ GRPC_SSL_TARGET_NAME_OVERRIDE_ARG

#define GRPC_SSL_TARGET_NAME_OVERRIDE_ARG   "grpc.ssl_target_name_override"

This should be used for testing only. The caller of the secure_channel_create functions may override the target name used for SSL host name checking using this channel argument which is of type GRPC_ARG_STRING. If this argument is not specified, the name used for SSL host name checking will be the target parameter (assuming that the secure channel is an SSL channel). If this parameter is specified and the underlying is not an SSL channel, it will just be ignored.

Definition at line 278 of file grpc_types.h.

◆ GRPC_TCP_DEFAULT_READ_SLICE_SIZE

#define GRPC_TCP_DEFAULT_READ_SLICE_SIZE   8192

Note this is not a "channel arg" key. This is the default slice size to use when trying to read from the wire if the GRPC_ARG_TCP_READ_CHUNK_SIZE channel arg is unspecified.

Definition at line 334 of file grpc_types.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:39