Skip to main content

Module Constants

Module Constants 

Source
Expand description

Default configuration constants for Vine gRPC servers.

Canonical home for the values every Vine bind site shares: default ports, connection timeout, max concurrent connection budget, max message size. Consumers (Mountain’s MountainVinegRPCService, Air’s AirVinegRPCService, any Rust-side Cocoon client) reference these constants instead of redefining them.

Constants§

CONNECTION_TIMEOUT
Default connection timeout used by the bind helper when configuring the underlying tonic Server.
DEFAULT_AIR_PORT
Default port for the AirService gRPC server.
DEFAULT_COCOON_PORT
Default port for the CocoonService gRPC server.
DEFAULT_MOUNTAIN_PORT
Default port for the MountainService gRPC server.
MAX_CONNECTIONS
Maximum concurrent connections per server. Tonic does not directly enforce this today; the constant is exposed so the embedder can apply it via tower::limit::ConcurrencyLimitLayer if needed.
MAX_MESSAGE_SIZE
Default message size limit (4 MB).