Skip to main content

MAX_SOCKET_PATH_LEN

Constant MAX_SOCKET_PATH_LEN 

Source
pub const MAX_SOCKET_PATH_LEN: usize = 100;
Expand description

Safe cushion below the smallest sun_path capacity we care about (104 bytes on macOS/BSD), leaving room for the trailing NUL and a couple of bytes of margin. If the preferred <data_dir>/ipc.sock path is longer than this we fall back to $TMPDIR.