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::ConcurrencyLimitLayerif needed. - MAX_
MESSAGE_ SIZE - Default message size limit (4 MB).