Skip to main content

ValidateMessageSize

Function ValidateMessageSize 

Source
pub fn ValidateMessageSize(Data: &[u8]) -> Result<(), VineError>
Expand description

Reject messages above MAX_MESSAGE_SIZE_BYTES to bound the worst-case gRPC frame. Mirrors tonic’s own check so we don’t pay the codec round- trip for an oversize payload.