Skip to main content

MAX_EXEC_LEN

Constant MAX_EXEC_LEN 

Source
pub const MAX_EXEC_LEN: usize = 512;
Expand description

Longest exec request accepted, in bytes.

The longest legal request is a verb plus a quoted [crate::path::MAX_PATH_LEN] path plus quoting, comfortably under this. Anything larger is refused before it is looked at, so a client cannot make the parser do work by sending a megabyte.