Skip to main content

MAX_PREAUTH_FRAME_SIZE

Constant MAX_PREAUTH_FRAME_SIZE 

Source
pub const MAX_PREAUTH_FRAME_SIZE: usize = _; // 16_384usize
Expand description

Maximum frame size accepted from a client that has not yet authenticated.

The only frames a client legitimately sends before authenticating are credentials: a password, or one leg of a SASL exchange. This sits far above any of those while leaving room for a bearer token, which can run to several kilobytes.